aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorTimothy Redaelli <timothy.redaelli@gmail.com>2012-04-25 14:07:24 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2012-04-27 10:45:58 -0400
commitea22a380de824500644db6fd6f33d0465b34f7a1 (patch)
tree2329ed9830296a330e93afae70fc868f18db7581 /src/net.cpp
parent07d1a50aee407bcdc32c884801290ee2724637ea (diff)
downloadbitcoin-ea22a380de824500644db6fd6f33d0465b34f7a1.tar.xz
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 5368261243..e5cb6d4b24 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -13,6 +13,8 @@
#ifdef WIN32
#include <string.h>
+#else
+#include <netinet/in.h>
#endif
#ifdef USE_UPNP