summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-05 14:34:12 +0000
committermidipix <writeonce@midipix.org>2019-10-05 14:34:12 +0000
commitc6c2f328e84391ad5b8d95a315ccdae9d63f47f4 (patch)
tree3886092dbce111a3ba011fa6320235c87dad18c3 /profiles
parent8b2739613bcdbae898d02b1a806441b3446115a4 (diff)
downloadsbpython2-c6c2f328e84391ad5b8d95a315ccdae9d63f47f4.tar.bz2
sbpython2-c6c2f328e84391ad5b8d95a315ccdae9d63f47f4.tar.xz
profiles/osapi/modern.h: only #define _XOPEN_SOURCE as needed.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/osapi/modern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/profiles/osapi/modern.h b/profiles/osapi/modern.h
index 3ef51c8..3075dd6 100644
--- a/profiles/osapi/modern.h
+++ b/profiles/osapi/modern.h
@@ -276,6 +276,9 @@
#define __EXTENSIONS__ 1
#endif
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 600
+#endif
#define _BSD_TYPES 1
#define _DARWIN_C_SOURCE 1
@@ -285,7 +288,6 @@
#define _NETBSD_SOURCE 1
#define _POSIX_C_SOURCE 200112L
#define _REENTRANT 1
-#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE_EXTENDED 1
#define __BSD_VISIBLE 1
#define __EXTENSIONS__ 1