diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-05-28 15:57:07 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-05-28 16:38:26 -0400 |
commit | 175b195a7cc1d9a766bec49940275b1351c37c62 (patch) | |
tree | 441c6f667b4a97dbd8e85673f95111df0d48099e /gpsmon.c | |
parent | 70c068d2760f8243c15e51a1f56f602005b7e1e2 (diff) | |
download | gpsd-175b195a7cc1d9a766bec49940275b1351c37c62.tar.gz |
FreeBSD wants to force us to call sysconf(). Foil it.
Diffstat (limited to 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |