summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2013-04-10 08:47:20 +0200
committerNils Maier <maierman@web.de>2013-04-10 08:47:20 +0200
commit9acd3df3cb833e429687347a0d049306353c6e2a (patch)
tree4abcdc54e8bd321ebd1b1e052003c3b34655caeb /src/SocketCore.cc
parentb35fbd3172169bb0f586fa9a708808dc6d8b7ecd (diff)
LibUV: Implement LibuvEventPoll
LibUV event will use the best available polling method on a system, kind of like aria2 does already with the different *EventPoll implementations. However, libuv may support different/newer polling mechanisms; for example on Windows it will use IO Completion Ports which are superior to select() ;)
Diffstat (limited to 'src/SocketCore.cc')
-rw-r--r--src/SocketCore.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc
index b7ed9d85..4fcf8ea0 100644
--- a/src/SocketCore.cc
+++ b/src/SocketCore.cc
@@ -1217,7 +1217,7 @@ const uint32_t APIPA_IPV4_END = 2852061183u; // 169.254.255.255
void checkAddrconfig()
{
-#ifdef __MINGW32__
+#ifdef HAVE_IPHLPAPI_H
A2_LOG_INFO("Checking configured addresses");
ULONG bufsize = 15*1024;
ULONG retval = 0;