diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-07-07 10:44:30 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-07-07 12:48:56 +0200 |
commit | afe380ef0f1c70185fc7c50e1a75e589ff3382dd (patch) | |
tree | 4f792cd61a79097fa9300266b3ccc0e09ae3dbb2 /src | |
parent | 4252f2928b26e1ad37bc899e6602393c1053ec4e (diff) |
Fix the build for windows
Problem introduced in caf6150. Thanks to @drak for noticing. Fixes #4473.
Diffstat (limited to 'src')
-rw-r--r-- | src/netbase.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp index 2567c4c780..175406322a 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -7,10 +7,6 @@ #include "bitcoin-config.h" #endif -#ifdef HAVE_INET_PTON -#include <arpa/inet.h> -#endif - #ifdef HAVE_GETADDRINFO_A #include <netdb.h> #endif @@ -23,6 +19,9 @@ #include "util.h" #ifndef WIN32 +#if HAVE_INET_PTON +#include <arpa/inet.h> +#endif #include <fcntl.h> #endif |