Changeset

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
parents 9278:8f9e18d4fe50
children 9281:927adf8648d3 9502:09e7b0048ebe
files util-src/pposix.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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>