summaryrefslogtreecommitdiff
path: root/ares_library_init.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-05-20 16:43:25 +0200
committerYang Tse <yangsita@gmail.com>2011-05-20 16:43:25 +0200
commitef5390e6bb9c20199d11bf33146764900256f961 (patch)
tree8905757c4ed91e4bdd6ece2f94ecda598fc233bb /ares_library_init.h
parent6518b56a5e2bc9e39d720f17fa7dd322a28dc33c (diff)
downloadc-ares-ef5390e6bb9c20199d11bf33146764900256f961.tar.gz
c-ares-ef5390e6bb9c20199d11bf33146764900256f961.tar.bz2
c-ares-ef5390e6bb9c20199d11bf33146764900256f961.zip
winsock: compilation fixes
Provide winsock iphlpapi alternative definitions to prevent compilation failures when using a variety of winsock header implementations.
Diffstat (limited to 'ares_library_init.h')
-rw-r--r--ares_library_init.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ares_library_init.h b/ares_library_init.h
index fe27d80..59e5cc5 100644
--- a/ares_library_init.h
+++ b/ares_library_init.h
@@ -3,7 +3,7 @@
/* Copyright 1998 by the Massachusetts Institute of Technology.
- * Copyright (C) 2004-2009 by Daniel Stenberg
+ * Copyright (C) 2004-2011 by Daniel Stenberg
*
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
@@ -23,6 +23,7 @@
#ifdef USE_WINSOCK
#include <iphlpapi.h>
+#include <ares_iphlpapi.h>
typedef DWORD (WINAPI *fpGetNetworkParams_t) (FIXED_INFO*, DWORD*);
typedef BOOLEAN (APIENTRY *fpSystemFunction036_t) (void*, ULONG);