From 2d3f30695b1632d8e99c05b7d12cebc77017cc04 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 8 Sep 2018 11:46:02 +0200 Subject: util.pposix: Fix or silence a warning on OS X (#1202) --- util-src/pposix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util-src') diff --git a/util-src/pposix.c b/util-src/pposix.c index 5e20def7..d3b1e5e6 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -21,6 +21,9 @@ #else #define _DEFAULT_SOURCE #endif +#if defined(__APPLE__) +#define _DARWIN_C_SOURCE +#endif #define _POSIX_C_SOURCE 200809L #include -- cgit v1.2.3