From a7729b67c4135915c6787e08b34b28450848a35f Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 16 Aug 2016 15:23:25 -0700 Subject: for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999 Sad, C99 did not actually standardize the defines to invoke the standard. --- gpsd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gpsd.c') diff --git a/gpsd.c b/gpsd.c index d1b404b5..ee6e779c 100644 --- a/gpsd.c +++ b/gpsd.c @@ -15,6 +15,9 @@ /* strlcpy() needs _DARWIN_C_SOURCE */ #define _DARWIN_C_SOURCE +/* for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999 */ +#define __ISO_C_VISIBLE 1999 + #include #include #include /* for select() */ -- cgit v1.2.1