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. --- libgpsd_core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libgpsd_core.c') diff --git a/libgpsd_core.c b/libgpsd_core.c index 302b9cc8..62631424 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -10,10 +10,14 @@ * BSD terms apply: see the file COPYING in the distribution root for details. */ +#ifdef __linux__ +/* FreeBSD chokes on this */ /* getsid() needs _XOPEN_SOURCE, 500 means X/Open 1995 */ #define _XOPEN_SOURCE 500 /* isfinite() and pselect() needs _POSIX_C_SOURCE >= 200112L */ #define _POSIX_C_SOURCE 200112L +#endif /* __linux__ */ + /* strlcpy() needs _DARWIN_C_SOURCE */ #define _DARWIN_C_SOURCE -- cgit v1.2.1