commit b0ab3b4e0ecf62bf6f551d00fdf06308402fd604
parent 47903252cc45eedaf524eee2a5caf15cadd51114
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Sun, 6 Oct 2024 17:58:00 +0200
add XOPEN_SOURCE=500 to build conf
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/build.ninja b/build.ninja
@@ -5,10 +5,15 @@ builddir = ./build
# build.ninja
include conf.ninja
+# the XOPEN_SOURCE=500 could be avoided by using
+# _DEFAULT_SOURCE (the BSD one is deprecated) but
+# I am unsure if that would bring in non-standard
+# features, that I would rather avoid doing.
CCFLAGS = $$CCFLAGS $
-DVERSION='"TODO..."' $
-std=c11 $
-D_POSIX_C_SOURCE=200809L $
+ -D_XOPEN_SOURCE=500L $
-Werror=missing-variable-declarations $
subninja src/librunit.ninja