diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-16 13:53:28 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-16 13:53:28 -0700 |
commit | 1b6571adbc12f856ffc96ab501df0352e7b3e04c (patch) | |
tree | 47c8c28f259b4fce76715d1f48089e7c9ae702c4 /gpsd.c | |
parent | bbbc307cbe9b91918c81ce282f86b3d3c542bf9a (diff) | |
download | gpsd-1b6571adbc12f856ffc96ab501df0352e7b3e04c.tar.gz |
__DARWIN_C_LEVEL and _DARWIN_C_SOURCE to silence some warnings.
vsnprintf() and strlcmp() are happier now.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ #define _XOPEN_SOURCE 500 /* setgroups() and daemon() needs _DEFAULT_SOURCE */ #define _DEFAULT_SOURCE +/* vsnprintf() needs __DARWIN_C_LEVEL >= 200112L */ +#define __DARWIN_C_LEVEL 200112L +/* strlcpy() needs _DARWIN_C_SOURCE */ +#define _DARWIN_C_SOURCE #include <sys/stat.h> #include <sys/types.h> |