diff options
author | Gary E. Miller <gem@rellim.com> | 2018-12-26 18:47:07 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-12-26 18:47:07 -0800 |
commit | 92d6a78098d1580568da47300e0dab4f02174cfc (patch) | |
tree | 33cbdd8e7092abc3babe44e2f0ae94b0f6862f16 /gps2udp.c | |
parent | 319beafb55497b1caf19ba380811661683142f73 (diff) | |
download | gpsd-92d6a78098d1580568da47300e0dab4f02174cfc.tar.gz |
gps2udp: setting POSIX_C_LEVEL breaks strsep() on osX.
Diffstat (limited to 'gps2udp.c')
-rw-r--r-- | gps2udp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -15,11 +15,14 @@ /* strsep() needs _DEFAULT_SOURCE */ #define _DEFAULT_SOURCE -#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L +/* #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L */ +#ifdef __linux__ /* isfinite() and pselect() needs _POSIX_C_SOURCE >= 200112L */ #define _POSIX_C_SOURCE 200112L #endif /* __linux__ */ +#define __DARWIN_C_LEVEL 900000L + #include <time.h> #include "gpsd_config.h" |