summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-09-07 02:44:59 +0100
committerGary E. Miller <gem@rellim.com>2016-09-07 02:44:59 +0100
commit5269af1e7b46e5cfa6b17ccf9a40aa1efd0a6cc6 (patch)
treea8ead9c306230fb2580b6b34af9f310009d5b97d /gpsd.c
parente14b909c25b48ef9a484ad5e9a7f765cafbf5d67 (diff)
downloadgpsd-5269af1e7b46e5cfa6b17ccf9a40aa1efd0a6cc6.tar.gz
No need to escape the DARWIN defines.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 2e94813c..7aabc269 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -12,11 +12,12 @@
#define _XOPEN_SOURCE 500
/* setgroups() and daemon() needs _DEFAULT_SOURCE */
#define _DEFAULT_SOURCE
+#endif /* __linux__ */
+
/* vsnprintf() needs __DARWIN_C_LEVEL >= 200112L */
#define __DARWIN_C_LEVEL 200112L
/* strlcpy() needs _DARWIN_C_SOURCE */
#define _DARWIN_C_SOURCE
-#endif /* __linux__ */
#include <sys/stat.h>
#include <sys/types.h>