# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1536399962 -7200 # Node ID 37b796cc366a2345dda37eb95f34191a50fc56ff # Parent 8f9e18d4fe500cc5b167c8c8804156c8466dfe97 util.pposix: Fix or silence a warning on OS X (#1202) diff -r 8f9e18d4fe50 -r 37b796cc366a util-src/pposix.c --- 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>