mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-17 02:49:19 +00:00
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
This commit is contained in:
parent
a93ab87787
commit
dfac636fd7
@ -12,6 +12,8 @@
|
||||
|
||||
#ifdef WIN32
|
||||
#include <string.h>
|
||||
#else
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_UPNP
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
|
||||
#ifndef WIN32
|
||||
# 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
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
#ifndef __INCLUDED_PROTOCOL_H__
|
||||
#define __INCLUDED_PROTOCOL_H__
|
||||
|
||||
#ifndef WIN32
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include "serialize.h"
|
||||
#include <string>
|
||||
#include "uint256.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user