aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-14 12:01:44 +0000
committerYang Tse <yangsita@gmail.com>2006-10-14 12:01:44 +0000
commitdc3ed353132f853dc3ddee410a4f9423534a8289 (patch)
tree9a852ecd1fed09fb2ce62fd4e18b1f09da7e606d /ares
parent6b868df554ba12ffa640a92e769352af84805b63 (diff)
Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support
Diffstat (limited to 'ares')
-rw-r--r--ares/Makefile.dj2
-rw-r--r--ares/Makefile.netware3
-rw-r--r--ares/config-win32.h19
3 files changed, 23 insertions, 1 deletions
diff --git a/ares/Makefile.dj b/ares/Makefile.dj
index bba45eb61..0524bd62e 100644
--- a/ares/Makefile.dj
+++ b/ares/Makefile.dj
@@ -13,6 +13,8 @@ CFLAGS = -O2 -Wall -DWATT32 -Dselect=select_s -DHAVE_AF_INET6 \
-DHAVE_PF_INET6 -DHAVE_IOCTLSOCKET -DHAVE_STRUCT_IN6_ADDR \
-DHAVE_STRUCT_SOCKADDR_IN6 -DHAVE_STRUCT_ADDRINFO \
-DHAVE_ARPA_NAMESER_H -DNS_INADDRSZ=4 \
+ -DHAVE_SYS_TIME_H -DHAVE_TIME_H \
+ -DTIME_WITH_SYS_TIME -DHAVE_STRUCT_TIMEVAL \
-DHAVE_SOCKADDR_IN6_SIN6_SCOPE_ID -I$(WATT32_ROOT)/inc
LDFLAGS = -s
diff --git a/ares/Makefile.netware b/ares/Makefile.netware
index 78e6930e2..b20497f9a 100644
--- a/ares/Makefile.netware
+++ b/ares/Makefile.netware
@@ -316,9 +316,10 @@ config.h: Makefile.netware
@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
@echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
@echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
+ @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
@echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
@echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
- @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
+ @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
@echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
@echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
ifdef NW_WINSOCK
diff --git a/ares/config-win32.h b/ares/config-win32.h
index 8e68f9825..0cd626ff4 100644
--- a/ares/config-win32.h
+++ b/ares/config-win32.h
@@ -29,6 +29,12 @@
#define HAVE_GETOPT_H 1
#endif
+/* Define if you have the <sys/time.h> header file */
+/* #define HAVE_SYS_TIME_H 1 */
+
+/* Define if you have the <time.h> header file. */
+#define HAVE_TIME_H 1
+
/* Define if you have the <unistd.h> header file. */
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
defined(__POCC__)
@@ -48,6 +54,16 @@
#define HAVE_WS2TCPIP_H 1
/* ---------------------------------------------------------------- */
+/* OTHER HEADER INFO */
+/* ---------------------------------------------------------------- */
+
+/* Define if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if you can safely include both <sys/time.h> and <time.h>. */
+/* #define TIME_WITH_SYS_TIME 1 */
+
+/* ---------------------------------------------------------------- */
/* FUNCTIONS */
/* ---------------------------------------------------------------- */
@@ -121,6 +137,9 @@
/* Define this if you have struct sockaddr_storage */
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
+/* Define this if you have struct timeval */
+#define HAVE_STRUCT_TIMEVAL 1
+
/* ---------------------------------------------------------------- */
/* IPV6 COMPATIBILITY */
/* ---------------------------------------------------------------- */