We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)

This commit is contained in:
Timothy Redaelli
2012-04-25 14:07:24 +02:00
committed by Luke Dashjr
parent c21121752d
commit 282e3ffe6e
3 changed files with 7 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
#ifdef __WXMSW__
#include <string.h>
#else
#include <netinet/in.h>
#endif
#ifdef USE_UPNP

View 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

View File

@@ -10,6 +10,10 @@
#ifndef __INCLUDED_PROTOCOL_H__
#define __INCLUDED_PROTOCOL_H__
#ifndef __WXMSW__
#include <netinet/in.h>
#endif
#include "serialize.h"
#include <string>
#include "uint256.h"