summaryrefslogtreecommitdiff
path: root/netlib.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 /netlib.c
parentbc4a4a9f2e739a0ce0448081a877be562c1bcfe0 (diff)
downloadgpsd-d8eae2c73a707f215e2146568d5353329a25dcfa.tar.gz
for INADDR_LOOPBACK() FreeBSD wants __BSD_VISIBLE
Oh what a tangled web...
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/netlib.c b/netlib.c
index a0403cdd..cc1c7bf1 100644
--- a/netlib.c
+++ b/netlib.c
@@ -2,6 +2,10 @@
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+
+/* for INADDR_LOOPBACK() FreeBSD wants __BSD_VISIBLE */
+#define __BSD_VISIBLE
+
#include <string.h>
#include <fcntl.h>
#include <netdb.h>