summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-16 15:46:19 -0700
committerGary E. Miller <gem@rellim.com>2016-08-16 15:46:19 -0700
commitd8eae2c73a707f215e2146568d5353329a25dcfa (patch)
tree97422a442625dc4df9d239ed7e502b9e4eb103fb /gpsd.c
parentbc4a4a9f2e739a0ce0448081a877be562c1bcfe0 (diff)
downloadgpsd-d8eae2c73a707f215e2146568d5353329a25dcfa.tar.gz
for INADDR_LOOPBACK() FreeBSD wants __BSD_VISIBLE
Oh what a tangled web...
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index ee6e779c..3627e112 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -17,6 +17,8 @@
/* for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999 */
#define __ISO_C_VISIBLE 1999
+/* for INADDR_LOOPBACK() FreeBSD wants __BSD_VISIBLE */
+#define __BSD_VISIBLE
#include <sys/stat.h>
#include <sys/types.h>