summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-16 15:23:25 -0700
committerGary E. Miller <gem@rellim.com>2016-08-16 15:24:22 -0700
commita7729b67c4135915c6787e08b34b28450848a35f (patch)
treeb3de36f138ce44211e14b336301dca06a7f996d2 /libgps_core.c
parent8066c57a474c5b9ebdcdef5a6d3e4620dd197e87 (diff)
downloadgpsd-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 'libgps_core.c')
-rw-r--r--libgps_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgps_core.c b/libgps_core.c
index ca580bd1..644b96d4 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -5,6 +5,10 @@
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+
+/* for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999 */
+#define __ISO_C_VISIBLE 1999
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>