[scc-dev] [PATCH 1/3] make/posix: fix feature test macros

From: remph <lhr_at_disroot.org>
Date: Thu, 20 Feb 2025 19:32:19 +0000

* Feature test macros must be defined to an integer, or features.h will
  error when comparing them with integers
* glibc wants _XOPEN_SOURCE (which also implies _POSIX_C_SOURCE) for some
  stat macros
---
 src/cmd/scc-make/posix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/scc-make/posix.c b/src/cmd/scc-make/posix.c
index 1b966f17..bf0764a6 100644
--- a/src/cmd/scc-make/posix.c
+++ b/src/cmd/scc-make/posix.c
_at_@ -1,4 +1,4 @@
-#define _POSIX_C_SOURCE
+#define _XOPEN_SOURCE 1
 
 #include <signal.h>
 #include <sys/stat.h>
-- 
2.48.1
--
To unsubscribe send a mail to scc-dev+unsubscribe_at_simple-cc.org
Received on Thu 20 Feb 2025 - 20:32:19 CET

This archive was generated by hypermail 2.3.0 : Thu 20 Feb 2025 - 20:40:02 CET