aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/netbase.cpp7
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