Commit: 7f4479fec7e5f1f4ca1c86d50b13a7ca92b855b9
Parent: d79fb153c9c5533d9350637ecbf051c2af7deff9
Author: Randy Palamar
Date: Tue, 24 Dec 2024 15:16:58 -0700
fix build with glibc
glibc likes to hide constants behind random ifdefs. eventually I
will remove c-runtime dependance and we won't have this completely
pointless make work problem.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
@@ -1,7 +1,7 @@
#!/bin/sh
cflags="-march=native -O3 -std=c11 -Wall -pedantic"
-cflags="$cflags -D_XOPEN_SOURCE=500"
+cflags="$cflags -D_XOPEN_SOURCE=700"
cflags="$cflags -I /usr/X11R6/include"
#cflags="${cflags} -O0 -ggdb -D_DEBUG"
diff --git a/status.c b/status.c
@@ -1,4 +1,5 @@
/* See LICENSE for license details. */
+#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>
#include <stddef.h>