@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: MIT */
+#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
+#endif
#include "lib.h"
#include "syscall.h"
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: MIT */
+#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
+#endif
#include "lib.h"
#include "syscall.h"
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: MIT */
+#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
+#endif
#include "lib.h"
#include "syscall.h"
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: MIT */
+#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
+#endif
/*
* Functions in this file require libc, only build them when we use libc.
This is a prep patch. The next patch will cause macro redefinition warnings if we don't have this patch. Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org> --- src/queue.c | 2 ++ src/register.c | 2 ++ src/setup.c | 2 ++ src/syscall.c | 2 ++ 4 files changed, 8 insertions(+)