diff options
author | Timothy Redaelli <timothy.redaelli@gmail.com> | 2012-04-25 14:07:24 +0200 |
---|---|---|
committer | Timothy Redaelli <timothy.redaelli@gmail.com> | 2012-04-25 14:07:24 +0200 |
commit | 5e9dc153609a849e1818763f9bc4187c90f34a71 (patch) | |
tree | 556f363d8e9486a71b755753c25eee14649c9232 | |
parent | c2e8c8acd8ae0c94c70b59f55169841ad195bb99 (diff) | |
download | bitcoin-5e9dc153609a849e1818763f9bc4187c90f34a71.tar.xz |
We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
-rw-r--r-- | src/compat.h | 4 |
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; |