summaryrefslogtreecommitdiff
path: root/src/unistd/_POSIX_VERSION.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-09 13:14:01 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-09 13:14:01 -0500
commit253a32e2f9ff1cbb8edbe7c79834a678daebeb93 (patch)
tree599cf5baf01c6dae33a2f89989b08b7d553f7fd0 /src/unistd/_POSIX_VERSION.c
parent88d0b5e7ffbf0554b236dc46225846061b5f4817 (diff)
merge POSIX.1-1988/1990
Diffstat (limited to 'src/unistd/_POSIX_VERSION.c')
-rw-r--r--src/unistd/_POSIX_VERSION.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/unistd/_POSIX_VERSION.c b/src/unistd/_POSIX_VERSION.c
new file mode 100644
index 00000000..d9552154
--- /dev/null
+++ b/src/unistd/_POSIX_VERSION.c
@@ -0,0 +1,17 @@
+#include <unistd.h>
+#if _POSIX_C_SOURCE >= 200809L
+#define _POSIX_VERISON (200809L)
+#elif _POSIX_C_SOURCE >= 200112L
+#define _POSIX_VERSION (200112L)
+#elif _POSIX_C_SOURCE >= 199506L
+#define _POSIX_VERSION (199506L)
+#elif _POSIX_C_SOURCE >= 199309L
+#define _POSIX_VERSION (199309L)
+#elif defined _POSIX_C_SOURCE
+#define _POSIX_VERSION (199009L)
+#else
+#define _POSIX_VERSION (198808L)
+#endif
+/*
+POSIX(1)
+*/