summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-16 13:53:28 -0700
committerGary E. Miller <gem@rellim.com>2016-08-16 13:53:28 -0700
commit1b6571adbc12f856ffc96ab501df0352e7b3e04c (patch)
tree47c8c28f259b4fce76715d1f48089e7c9ae702c4 /gpsctl.c
parentbbbc307cbe9b91918c81ce282f86b3d3c542bf9a (diff)
downloadgpsd-1b6571adbc12f856ffc96ab501df0352e7b3e04c.tar.gz
__DARWIN_C_LEVEL and _DARWIN_C_SOURCE to silence some warnings.
vsnprintf() and strlcmp() are happier now.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsctl.c b/gpsctl.c
index ff1ea6b7..d7f59e56 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -9,6 +9,9 @@
#define _XOPEN_SOURCE 500
/* pselect() needs _POSIX_C_SOURCE >= 200112L */
#define _POSIX_C_SOURCE 200112L
+/* strlcpy() needs _DARWIN_C_SOURCE */
+#define _DARWIN_C_SOURCE
+
#include <stdio.h>
#include <stdlib.h>