summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-12-26 18:47:07 -0800
committerGary E. Miller <gem@rellim.com>2018-12-26 18:47:07 -0800
commit92d6a78098d1580568da47300e0dab4f02174cfc (patch)
tree33cbdd8e7092abc3babe44e2f0ae94b0f6862f16 /gps2udp.c
parent319beafb55497b1caf19ba380811661683142f73 (diff)
downloadgpsd-92d6a78098d1580568da47300e0dab4f02174cfc.tar.gz
gps2udp: setting POSIX_C_LEVEL breaks strsep() on osX.
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gps2udp.c b/gps2udp.c
index ced24613..e08483e1 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -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"