aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorTimothy Redaelli <timothy.redaelli@gmail.com>2012-04-25 14:07:24 +0200
committerTimothy Redaelli <timothy.redaelli@gmail.com>2012-04-25 14:07:24 +0200
commit5e9dc153609a849e1818763f9bc4187c90f34a71 (patch)
tree556f363d8e9486a71b755753c25eee14649c9232 /src/compat.h
parentc2e8c8acd8ae0c94c70b59f55169841ad195bb99 (diff)
downloadbitcoin-5e9dc153609a849e1818763f9bc4187c90f34a71.tar.xz
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
Diffstat (limited to 'src/compat.h')
-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;