summaryrefslogtreecommitdiff
path: root/src/unistd/_XOPEN_VERSION.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-09 15:42:20 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-09 15:42:20 -0500
commita0dd1ebaf7613657a39ca22882ac6eaafa4a932e (patch)
treedc42ba738026d373fde4e6df7913e1bdd3b4ac30 /src/unistd/_XOPEN_VERSION.c
parent452ac2f7d9d5ecd57e80d95e5752f8c8304ff0b0 (diff)
merge XOPEN identifiers
Diffstat (limited to 'src/unistd/_XOPEN_VERSION.c')
-rw-r--r--src/unistd/_XOPEN_VERSION.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/unistd/_XOPEN_VERSION.c b/src/unistd/_XOPEN_VERSION.c
new file mode 100644
index 00000000..c2b768ee
--- /dev/null
+++ b/src/unistd/_XOPEN_VERSION.c
@@ -0,0 +1,17 @@
+#include <unistd.h>
+
+#if (defined _XOPEN_SOURCE)
+#if _XOPEN_SOURCE >= 700
+#define _XOPEN_VERSION (700)
+#elif _XOPEN_SOURCE >= 600
+#define _XOPEN_VERSION (600)
+#elif _XOPEN_SOURCE >= 500
+#define _XOPEN_VERSION (500)
+#else
+#define _XOPEN_VERSION (4)
+#endif
+#endif
+
+/*
+XOPEN(4)
+*/