From cb216cd0ad6f6f0cc51596ead6720082386c84c9 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 7 Sep 2016 03:13:03 +0100 Subject: Shield FreeBSD from standards compliance. gpsd now compiles, and runs scons check, with no warnings on FreeBSD. --- driver_tsip.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'driver_tsip.c') diff --git a/driver_tsip.c b/driver_tsip.c index 34a53e83..4fd364c6 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -13,11 +13,15 @@ * BSD terms apply: see the file COPYING in the distribution root for details. */ +#ifdef __linux__ +/* FreeBSD chokes on this */ /* if we insist on C99, then we need this to get M_LN2 from math.h */ /* 500 mean X/Open 1995 */ #define _XOPEN_SOURCE 500 /* round() needs _POSIX_C_SOURCE >= 200112L */ #define _POSIX_C_SOURCE 200112L +#endif /* __linux__ */ + #include /* for select() */ #include -- cgit v1.2.1