We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
authorTimothy Redaelli <timothy.redaelli@gmail.com>
Wed, 25 Apr 2012 12:07:24 +0000 (14:07 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Fri, 27 Apr 2012 14:41:52 +0000 (10:41 -0400)
src/net.cpp
src/protocol.cpp
src/protocol.h

index 92ccb1e..5135a88 100644 (file)
@@ -12,6 +12,8 @@
 
 #ifdef __WXMSW__
 #include <string.h>
+#else
+#include <netinet/in.h>
 #endif
 
 #ifdef USE_UPNP
index a3e54eb..7d80d5d 100644 (file)
@@ -8,6 +8,7 @@
 
 #ifndef __WXMSW__
 # include <arpa/inet.h>
+# include <netinet/in.h>
 #endif
 
 // Prototypes from net.h, but that header (currently) stinks, can't #include it without breaking things
index 53d3eef..6db6490 100644 (file)
 #ifndef __INCLUDED_PROTOCOL_H__
 #define __INCLUDED_PROTOCOL_H__
 
+#ifndef __WXMSW__
+#include <netinet/in.h>
+#endif
+
 #include "serialize.h"
 #include <string>
 #include "uint256.h"