]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support
authorYang Tse <yangsita@gmail.com>
Sat, 14 Oct 2006 12:01:44 +0000 (12:01 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 14 Oct 2006 12:01:44 +0000 (12:01 +0000)
16 files changed:
ares/Makefile.dj
ares/Makefile.netware
ares/config-win32.h
lib/Makefile.netware
lib/config-amigaos.h
lib/config-mac.h
lib/config-riscos.h
lib/config-tpf.h
lib/config-win32.h
lib/config-win32ce.h
lib/config.dos
src/Makefile.netware
src/config-amigaos.h
src/config-mac.h
src/config-riscos.h
src/config-win32.h

index bba45eb61f765c94bdb0f5dfbfb6fcf7aedc2e9e..0524bd62e67872c209af64425725489de57d0fce 100644 (file)
@@ -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
index 78e6930e22acf183a41c06fcf8e0a95c0b05a0cb..b20497f9a6b936583ee6755a3d4c750b1e3a7726 100644 (file)
@@ -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
index 8e68f982533d97fb82cf0ba2ff955363310b994e..0cd626ff4fbad620792d14cd815335464a7f1821 100644 (file)
 #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__)
 /* Define if you have the <ws2tcpip.h> header file.  */
 #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                            */
 /* ---------------------------------------------------------------- */
 /* 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                       */
 /* ---------------------------------------------------------------- */
index 291b24ff665bee70f3ecbd79c8a75d23db19479f..d9489c4c0405fd2846410c32744cbffa0907d3e2 100644 (file)
@@ -359,9 +359,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 DISABLE_LDAP
index 88e8f5c97088a9aff225385a4bfd2bbd621d50bf..3d880003d36fbd0d99088d8b5dd82a7c4d656c9f 100644 (file)
@@ -39,6 +39,7 @@
 #define HAVE_STRINGS_H 1
 #define HAVE_STRING_H 1
 #define HAVE_STRSTR 1
+#define HAVE_STRUCT_TIMEVAL 1
 #define HAVE_SYS_PARAM_H 1
 #define HAVE_SYS_SOCKET_H 1
 #define HAVE_SYS_SOCKIO_H 1
index 35eeef6cc67b007406470272f728cd22bbf1fe42..afca67775f5df430d43538affc5cbc2cec34699f 100644 (file)
@@ -15,6 +15,7 @@
 #define HAVE_TIME_H             1
 #define HAVE_STDLIB_H           1
 #define HAVE_UTIME_H            1
+#define HAVE_SYS_TIME_H         1
 
 #define TIME_WITH_SYS_TIME      1
 
@@ -27,6 +28,7 @@
 #define HAVE_MEMCPY             1
 #define HAVE_SELECT             1
 #define HAVE_SOCKET             1
+#define HAVE_STRUCT_TIMEVAL     1
 
 //#define HAVE_STRICMP          1
 #define HAVE_SIGACTION          1
index bb4bafba5408fdfa962edfafd7a138e991fb3164..e2877df7510383019538508c3547044c29f20237 100644 (file)
 /* 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
 
index 5deb112d2e5ae3892c73d5d9c8780ef62f65ee35..6b1accc7997ec09e8d3b494d5c0cfd994d8f51ec 100644 (file)
 /* if struct sockaddr_storage is defined */
 /* #undef HAVE_STRUCT_SOCKADDR_STORAGE */
 
+/* Define this if you have struct timeval */
+#define HAVE_STRUCT_TIMEVAL 1
+
 /* Define to 1 if you have the <sys/filio.h> header file. */
 #define HAVE_SYS_FILIO_H 1
 
index 33322c839d062dfa7f797fa80715ca5cf5e5fa97..871e6bef6c98c54eb523a113a5dff535c26bf2cc 100644 (file)
@@ -81,6 +81,9 @@
 /* Define if you have the <sys/stat.h> header file.  */
 #define HAVE_SYS_STAT_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 HAVE_STRUCT_SOCKADDR_STORAGE 1
 #endif
 
+/* Define this if you have struct timeval */
+#define HAVE_STRUCT_TIMEVAL 1
+
 /* ---------------------------------------------------------------- */
 /*                        COMPILER SPECIFIC                         */
 /* ---------------------------------------------------------------- */
index f9796a302dd54473a0ce547f69edc7548e0c9931..21afc4268ec31031355f4873893bb13ec69015b8 100644 (file)
@@ -75,6 +75,9 @@
 /* Define if you have the <sys/stat.h> header file.  */
 #define HAVE_SYS_STAT_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 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
+
 /* ---------------------------------------------------------------- */
 /*                        COMPILER SPECIFIC                         */
 /* ---------------------------------------------------------------- */
index a5df499c08d7757ba14cf19e1da43cd2fc3be141..405399f87f568e5e2618631235a252d49582d1f2 100644 (file)
@@ -56,6 +56,7 @@
 #define HAVE_STRICMP           1
 #define HAVE_STRSTR            1
 #define HAVE_STRTOLL           1
+#define HAVE_STRUCT_TIMEVAL    1
 #define HAVE_SYS_IOCTL_H       1
 #define HAVE_SYS_SOCKET_H      1
 #define HAVE_SYS_STAT_H        1
index c0b2007dd60019f408af835555f5fb62018fb27f..a04043b5b52aec6099194540783cbe9198a49b68 100644 (file)
@@ -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
index e067c9662fbfadafcbff82a511174a0a9312f0d0..e58af4df79c7c35d376fc820019a59c67d87b417 100644 (file)
@@ -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
index e1806d5c6b5b04a65614620f0e8f8452f2b81447..2697afe0e280cb030d51970d5edc308076eb3d32 100644 (file)
 #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 */
index ceab565c1b42a8ae7389f853b4d28b409395672f..90e2d9f2ef9bc6c7ede6a81a7c296651e50185d0 100644 (file)
 /* 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
 
index ab60a2e1e3e800c2194481ea94f85994193644cd..fd9d1b81df0b8d19783f6760d9decf94f5fe7824 100644 (file)
 /* 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
 /* Define if you have the <ws2tcpip.h> header file.  */
 #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                            */
 /* ---------------------------------------------------------------- */
 #define HAVE_UTIME 1
 #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                     */
 /* ---------------------------------------------------------------- */