diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-16 15:23:25 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-16 15:24:22 -0700 |
commit | a7729b67c4135915c6787e08b34b28450848a35f (patch) | |
tree | b3de36f138ce44211e14b336301dca06a7f996d2 /gpsd_json.c | |
parent | 8066c57a474c5b9ebdcdef5a6d3e4620dd197e87 (diff) | |
download | gpsd-a7729b67c4135915c6787e08b34b28450848a35f.tar.gz |
for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999
Sad, C99 did not actually standardize the defines to invoke
the standard.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 5e10cd08..c0893775 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -21,6 +21,9 @@ PERMISSIONS /* strlcpy() needs _DARWIN_C_SOURCE */ #define _DARWIN_C_SOURCE +/* for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999 */ +#define __ISO_C_VISIBLE 1999 + #include <stdio.h> #include <math.h> #include <assert.h> |