Diff

util-src/pposix.c @ 9280:37b796cc366a

util.pposix: Fix or silence a warning on OS X (#1202)
author Kim Alvefur <zash@zash.se>
date Sat, 08 Sep 2018 11:46:02 +0200
parent 9278:8f9e18d4fe50
child 9281:927adf8648d3
line wrap: on
line diff
--- a/util-src/pposix.c	Sat Aug 18 12:07:40 2018 +0200
+++ b/util-src/pposix.c	Sat Sep 08 11:46:02 2018 +0200
@@ -21,6 +21,9 @@
 #else
 #define _DEFAULT_SOURCE
 #endif
+#if defined(__APPLE__)
+#define _DARWIN_C_SOURCE
+#endif
 #define _POSIX_C_SOURCE 200809L
 
 #include <stdlib.h>