util.pposix: Fix or silence a warning on OS X (#1202)

This commit is contained in:
Kim Alvefur 2018-09-08 11:46:02 +02:00
parent b78f1d3da1
commit 530a9f9c8e

View file

@ -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>