aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-04-26 15:25:56 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2012-04-26 15:25:56 -0700
commit287ce61dc264ff05a65b1d2c7c70c543152641cc (patch)
treef233e082a5f0cbba739fa1af1fa7f465c41e8bbe /src
parent9e71a5cd236e0b6639f55f2f6520aaa06eac0523 (diff)
parent5e9dc153609a849e1818763f9bc4187c90f34a71 (diff)
Merge pull request #1146 from drizztbsd/posix-include
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
Diffstat (limited to 'src')
-rw-r--r--src/compat.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compat.h b/src/compat.h
index db340445b2..804a8141b5 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -21,10 +21,8 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <net/if.h>
-#include <ifaddrs.h>
-#endif
-#ifdef BSD
#include <netinet/in.h>
+#include <ifaddrs.h>
#endif
typedef u_int SOCKET;