pulsecore:: Define _POSIX_C_SOURCE locally for rtclock on OSX

Defining this macro on a global level is disadvantageous for other APIs,
and as we need it for clock_gettime() only on Mac OS X, define it
locally in pulsecore/core-rtclock.c only.
This commit is contained in:
Daniel Mack 2011-04-22 02:27:35 +02:00 committed by Colin Guthrie
parent 7a3b3a3763
commit 98f2209663
2 changed files with 4 additions and 1 deletions

View file

@ -24,6 +24,10 @@
#include <config.h>
#endif
#ifdef OS_IS_DARWIN
#define _POSIX_C_SOURCE 1
#endif
#include <stddef.h>
#include <time.h>
#include <sys/time.h>