From 952bf9d754d021ee9c08f9add5c9af53aaaf39ae Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 21 Aug 2018 14:24:48 +0200 Subject: [PATCH] build: use _DEFAULT_SOURCE Add _DEFAULT_SOURCE FTM in order to avoid warnings with recent glibc. Signed-off-by: Jo-Philipp Wich --- file.c | 1 + main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/file.c b/file.c index 8ccf982..2f829f1 100644 --- a/file.c +++ b/file.c @@ -17,6 +17,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #define _DARWIN_C_SOURCE #define _XOPEN_SOURCE 700 diff --git a/main.c b/main.c index fb27665..11b33ff 100644 --- a/main.c +++ b/main.c @@ -17,6 +17,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #define _XOPEN_SOURCE 700 -- 2.25.1