Skip to content

Commit afe380e

Browse files
committed
Fix the build for windows
Problem introduced in caf6150. Thanks to @Drak for noticing. Fixes #4473.
1 parent 4252f29 commit afe380e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/netbase.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
#include "bitcoin-config.h"
88
#endif
99

10-
#ifdef HAVE_INET_PTON
11-
#include <arpa/inet.h>
12-
#endif
13-
1410
#ifdef HAVE_GETADDRINFO_A
1511
#include <netdb.h>
1612
#endif
@@ -23,6 +19,9 @@
2319
#include "util.h"
2420

2521
#ifndef WIN32
22+
#if HAVE_INET_PTON
23+
#include <arpa/inet.h>
24+
#endif
2625
#include <fcntl.h>
2726
#endif
2827

0 commit comments

Comments
 (0)