summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/libreboot-utils/lib/file.c')
-rw-r--r--util/libreboot-utils/lib/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/libreboot-utils/lib/file.c b/util/libreboot-utils/lib/file.c
index 9c4683ce..685cdf9a 100644
--- a/util/libreboot-utils/lib/file.c
+++ b/util/libreboot-utils/lib/file.c
@@ -16,8 +16,8 @@ more correct usage example:
long max = pathconf("/", _PC_PATH_MAX);
*/
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200809L
#endif
#include <sys/types.h>
@@ -34,6 +34,7 @@ long max = pathconf("/", _PC_PATH_MAX);
#ifdef __linux__
#include <linux/openat2.h>
#include <sys/syscall.h>
+long syscall(long number, ...);
#endif
#include "../include/common.h"