summaryrefslogtreecommitdiff
path: root/gpsrinex.c
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2019-03-14 14:36:02 -0700
committerFred Wright <fw@fwright.net>2019-03-18 19:46:03 -0700
commit3d828ebdc1aeb9cb130b1bf02b1e81a1109a86af (patch)
treee06a47ed764db91275e4e24d4e2f84825ee808e5 /gpsrinex.c
parenta36a199e2d5721fd019385e29610f5e43b39c388 (diff)
downloadgpsd-3d828ebdc1aeb9cb130b1bf02b1e81a1109a86af.tar.gz
gpsrinex: Fix build on OpenBSD.
On OpenBSD, apparently _XOPEN_SOURCE 500 isn't good enough to get isfinite(). Changing it to 600 fixes it. TESTED: (With subsequent fix included) Ran "build-all check" on Mac Pro 10.9, Mac Pro 10.14, MacBook Pro 10.9, PowerBook 10.5, VMs for OSX 10.5-10.13, Ubuntu 14.04, CentOS 7, Fedora 25, FreeBSD 10.3, OpenBSD 5.6, OpenBSD 5.6 32-bit, NetBSD 6.1.5, and Beaglebone (arm) Debian 7.
Diffstat (limited to 'gpsrinex.c')
-rw-r--r--gpsrinex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsrinex.c b/gpsrinex.c
index 650b67f7..94a69431 100644
--- a/gpsrinex.c
+++ b/gpsrinex.c
@@ -69,7 +69,8 @@
#ifndef _XOPEN_SOURCE
/* need >= 500 for strdup() */
-#define _XOPEN_SOURCE 500
+/* OpenBSD needs >= 600 for isfinite() */
+#define _XOPEN_SOURCE 600
#endif
#include <stdio.h>