From 22a121383f73fa7739f324021b6ad0ba6ed3cdb3 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 11 Sep 2022 00:44:14 +0200 Subject: Allow for overriding feature test macros --- liberty.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 #include -- cgit v1.2.3-70-g09d2