summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-05-28 15:57:07 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-05-28 16:38:26 -0400
commit175b195a7cc1d9a766bec49940275b1351c37c62 (patch)
tree441c6f667b4a97dbd8e85673f95111df0d48099e /gpsmon.c
parent70c068d2760f8243c15e51a1f56f602005b7e1e2 (diff)
downloadgpsd-175b195a7cc1d9a766bec49940275b1351c37c62.tar.gz
FreeBSD wants to force us to call sysconf(). Foil it.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index 787b9e49..ee4aaeb7 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -33,6 +33,11 @@
#define BUFLEN 2048
+/* needed under FreeBSD */
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif /* HOST_NAME_MAX */
+
/* external capability tables */
extern struct monitor_object_t nmea_mmt, sirf_mmt, ashtech_mmt;
extern struct monitor_object_t garmin_mmt, garmin_bin_ser_mmt;