aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-11 00:44:14 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-11 00:44:14 +0200
commit22a121383f73fa7739f324021b6ad0ba6ed3cdb3 (patch)
tree6f12d981ec9356703b62216eac663bff9a084a80
parent0e89bb9f461d49e76c7927088ed3b3f1e40cdaf7 (diff)
downloadliberty-22a121383f73fa7739f324021b6ad0ba6ed3cdb3.tar.gz
liberty-22a121383f73fa7739f324021b6ad0ba6ed3cdb3.tar.xz
liberty-22a121383f73fa7739f324021b6ad0ba6ed3cdb3.zip
Allow for overriding feature test macros
-rw-r--r--liberty.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/liberty.c b/liberty.c
index a3b8d27..4d27127 100644
--- a/liberty.c
+++ b/liberty.c
@@ -16,8 +16,13 @@
*
*/
-#define _POSIX_C_SOURCE 199309L
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 200112L
+#endif
+
+#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
+#endif
#include <stdio.h>
#include <stddef.h>