diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-07-07 10:44:30 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-07-07 12:48:56 +0200 |
| commit | afe380ef0f1c70185fc7c50e1a75e589ff3382dd (patch) | |
| tree | 4f792cd61a79097fa9300266b3ccc0e09ae3dbb2 /src/netbase.cpp | |
| parent | Merge pull request #4327 (diff) | |
| download | discoin-afe380ef0f1c70185fc7c50e1a75e589ff3382dd.tar.xz discoin-afe380ef0f1c70185fc7c50e1a75e589ff3382dd.zip | |
Fix the build for windows
Problem introduced in caf6150. Thanks to @drak for noticing. Fixes #4473.
Diffstat (limited to 'src/netbase.cpp')
| -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 2567c4c78..175406322 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 |