aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parent6b868df554ba12ffa640a92e769352af84805b63 (diff)
Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.netware1
-rw-r--r--src/config-amigaos.h1
-rw-r--r--src/config-mac.h5
-rw-r--r--src/config-riscos.h3
-rw-r--r--src/config-win32.h31
5 files changed, 41 insertions, 0 deletions
diff --git a/src/Makefile.netware b/src/Makefile.netware
index c0b2007dd..a04043b5b 100644
--- a/src/Makefile.netware
+++ b/src/Makefile.netware
@@ -345,6 +345,7 @@ config.h: Makefile.netware
@echo $(DL)#define SIZEOF_CURL_OFF_T 4$(DL) >> $@
@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
+ @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
ifdef ENABLE_IPV6
@echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
endif
diff --git a/src/config-amigaos.h b/src/config-amigaos.h
index e067c9662..e58af4df7 100644
--- a/src/config-amigaos.h
+++ b/src/config-amigaos.h
@@ -17,6 +17,7 @@
#define HAVE_SYS_TIME_H 1
#define HAVE_TIME_H 1
#define TIME_WITH_SYS_TIME 1
+#define HAVE_STRUCT_TIMEVAL 1
#if 0
# define HAVE_TERMIOS_H 1
diff --git a/src/config-mac.h b/src/config-mac.h
index e1806d5c6..2697afe0e 100644
--- a/src/config-mac.h
+++ b/src/config-mac.h
@@ -10,6 +10,11 @@
#define HAVE_UTIME 1
#define HAVE_FTRUNCATE 1
+#define HAVE_TIME_H 1
+#define HAVE_SYS_TIME_H 1
+#define TIME_WITH_SYS_TIME 1
+#define HAVE_STRUCT_TIMEVAL 1
+
#define main(x,y) curl_main(x,y)
/* we provide our own strdup prototype */
diff --git a/src/config-riscos.h b/src/config-riscos.h
index ceab565c1..90e2d9f2e 100644
--- a/src/config-riscos.h
+++ b/src/config-riscos.h
@@ -125,6 +125,9 @@
/* Define if you have the `gettimeofday' function. */
#define HAVE_GETTIMEOFDAY
+/* Define if you have the `timeval' struct. */
+#define HAVE_STRUCT_TIMEVAL
+
/* Define if you have the `inet_addr' function. */
#undef HAVE_INET_ADDR
diff --git a/src/config-win32.h b/src/config-win32.h
index ab60a2e1e..fd9d1b81d 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -21,6 +21,15 @@
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
+/* Define if you have the <sys/time.h> header file */
+/* #define HAVE_SYS_TIME_H 1 */
+
+/* Define if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if you have the <time.h> header file. */
+#define HAVE_TIME_H 1
+
/* Define if you have the <sys/utime.h> header file. */
#ifndef __BORLANDC__
#define HAVE_SYS_UTIME_H 1
@@ -44,6 +53,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 */
/* ---------------------------------------------------------------- */
@@ -65,6 +84,18 @@
#endif
/* ---------------------------------------------------------------- */
+/* STRUCT RELATED */
+/* ---------------------------------------------------------------- */
+
+/* Define this if you have struct sockaddr_storage */
+#ifndef __SALFORDC__
+#define HAVE_STRUCT_SOCKADDR_STORAGE 1
+#endif
+
+/* Define this if you have struct timeval */
+#define HAVE_STRUCT_TIMEVAL 1
+
+/* ---------------------------------------------------------------- */
/* ADDITIONAL DEFINITIONS */
/* ---------------------------------------------------------------- */