summaryrefslogtreecommitdiff
path: root/libgpsd_core.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 /libgpsd_core.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 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 41405ba5..b11d3223 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -14,6 +14,9 @@
#define _XOPEN_SOURCE 500
/* isfinite() and pselect() needs _POSIX_C_SOURCE >= 200112L */
#define _POSIX_C_SOURCE 200112L
+/* strlcpy() needs _DARWIN_C_SOURCE */
+#define _DARWIN_C_SOURCE
+
#include <time.h>
#include <stdio.h>