diff --git a/adig.c b/adig.c index 3bdf2c1..21bd8ad 100644 --- a/adig.c +++ b/adig.c @@ -51,7 +51,6 @@ #include #include #include -#include #include "ares.h" #include "ares_dns.h" diff --git a/ares_init.c b/ares_init.c index 2ce344d..8aaaa2f 100644 --- a/ares_init.c +++ b/ares_init.c @@ -63,7 +63,6 @@ #include #include #include -#include #include "ares.h" #include "inet_net_pton.h" #include "ares_library_init.h" diff --git a/ares_process.c b/ares_process.c index ca4c8ee..a4bf1d2 100644 --- a/ares_process.c +++ b/ares_process.c @@ -63,7 +63,6 @@ #include #include #include -#include #include "ares.h" #include "ares_dns.h" diff --git a/ares_search.c b/ares_search.c index 608cb15..9face5f 100644 --- a/ares_search.c +++ b/ares_search.c @@ -20,7 +20,6 @@ #include #include #include -#include #ifdef HAVE_STRINGS_H # include diff --git a/config-dos.h b/config-dos.h index 653f8f8..c74425e 100644 --- a/config-dos.h +++ b/config-dos.h @@ -8,6 +8,7 @@ #define PACKAGE "c-ares" +#define HAVE_ERRNO_H 1 #define HAVE_GETTIMEOFDAY 1 #define HAVE_IOCTLSOCKET 1 #define HAVE_IOCTLSOCKET_FIONBIO 1 diff --git a/config-win32.h b/config-win32.h index 635845d..5d13f4c 100644 --- a/config-win32.h +++ b/config-win32.h @@ -2,7 +2,7 @@ #define __ARES_CONFIG_WIN32_H -/* Copyright (C) 2004 - 2010 by Daniel Stenberg et al +/* Copyright (C) 2004 - 2011 by Daniel Stenberg et al * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, provided @@ -26,6 +26,9 @@ /* Define if you have the header file. */ #define HAVE_ASSERT_H 1 +/* Define if you have the header file. */ +#define HAVE_ERRNO_H 1 + /* Define if you have the header file. */ #if defined(__MINGW32__) || defined(__POCC__) #define HAVE_GETOPT_H 1 diff --git a/inet_net_pton.c b/inet_net_pton.c index aa6a59f..45bb5d4 100644 --- a/inet_net_pton.c +++ b/inet_net_pton.c @@ -37,7 +37,6 @@ #endif #include -#include #include #include #include diff --git a/inet_ntop.c b/inet_ntop.c index 07d3f5a..57e1146 100644 --- a/inet_ntop.c +++ b/inet_ntop.c @@ -36,7 +36,6 @@ #endif #include -#include #include #include #include diff --git a/setup_once.h b/setup_once.h index 54c46b4..b185faa 100644 --- a/setup_once.h +++ b/setup_once.h @@ -2,7 +2,7 @@ #define __SETUP_ONCE_H -/* Copyright (C) 2004 - 2010 by Daniel Stenberg et al +/* Copyright (C) 2004 - 2011 by Daniel Stenberg et al * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, provided @@ -35,7 +35,10 @@ #include #include #include + +#ifdef HAVE_ERRNO_H #include +#endif #ifdef HAVE_SYS_TYPES_H #include