summaryrefslogtreecommitdiff
path: root/profiles/osapi
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-05 15:00:58 +0000
committermidipix <writeonce@midipix.org>2019-10-05 15:00:58 +0000
commit972d5073ebf037c8e3a5e234a1c6d43d349f3bf4 (patch)
treee3e5e07dc156b518aacb3d071a0764aa7b836c5e /profiles/osapi
parentf5abeed2cd247f1eb83d8ad40b8d0f668ef98887 (diff)
downloadsbpython3-972d5073ebf037c8e3a5e234a1c6d43d349f3bf4.tar.bz2
sbpython3-972d5073ebf037c8e3a5e234a1c6d43d349f3bf4.tar.xz
profiles/osapi/modern.h: only #define _XOPEN_SOURCE as needed.
Diffstat (limited to 'profiles/osapi')
-rw-r--r--profiles/osapi/modern.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/profiles/osapi/modern.h b/profiles/osapi/modern.h
index e4d6a00..710eb54 100644
--- a/profiles/osapi/modern.h
+++ b/profiles/osapi/modern.h
@@ -1,6 +1,10 @@
#ifndef PY_OSAPI_MODERN_H
#define PY_OSAPI_MODERN_H
+#ifndef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 700
+#endif
+
/* atomics */
#ifdef __ATOMIC_ACQUIRE
#define HAVE_BUILTIN_ATOMIC 1
@@ -343,7 +347,6 @@
#define _NETBSD_SOURCE 1
#define _POSIX_C_SOURCE 200809L
#define _REENTRANT 1
-#define _XOPEN_SOURCE 700
#define _XOPEN_SOURCE_EXTENDED 1
#define __BSD_VISIBLE 1
#define __EXTENSIONS__ 1