From be3c93e2b8040859337ac4cf52ac5d7a853f6e13 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Sat, 10 Aug 2019 01:02:59 +0300 Subject: [PATCH] Define _XOPEN_SOURCE to access some libc functions on Linux --- c/string.c | 2 ++ c/time_unix.c | 2 ++ c/utf8.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/c/string.c b/c/string.c index 9d83e3e..b29ea5f 100644 --- a/c/string.c +++ b/c/string.c @@ -2,6 +2,8 @@ string functions */ +#define _XOPEN_SOURCE + #include #include diff --git a/c/time_unix.c b/c/time_unix.c index d48da3f..4cca98b 100644 --- a/c/time_unix.c +++ b/c/time_unix.c @@ -1,3 +1,5 @@ +#define _XOPEN_SOURCE + #include #include diff --git a/c/utf8.c b/c/utf8.c index 2547e75..7c77b46 100644 --- a/c/utf8.c +++ b/c/utf8.c @@ -13,6 +13,8 @@ A UTF-8 validation routine is included. */ +#define _XOPEN_SOURCE + #include #include #include