From dc3ed353132f853dc3ddee410a4f9423534a8289 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 14 Oct 2006 12:01:44 +0000 Subject: Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support --- src/Makefile.netware | 1 + src/config-amigaos.h | 1 + src/config-mac.h | 5 +++++ src/config-riscos.h | 3 +++ src/config-win32.h | 31 +++++++++++++++++++++++++++++++ 5 files changed, 41 insertions(+) (limited to 'src') 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 header file. */ #define HAVE_LOCALE_H 1 +/* Define if you have the header file */ +/* #define HAVE_SYS_TIME_H 1 */ + +/* Define if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have the header file. */ +#define HAVE_TIME_H 1 + /* Define if you have the header file. */ #ifndef __BORLANDC__ #define HAVE_SYS_UTIME_H 1 @@ -43,6 +52,16 @@ /* Define if you have the 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 and . */ +/* #define TIME_WITH_SYS_TIME 1 */ + /* ---------------------------------------------------------------- */ /* FUNCTIONS */ /* ---------------------------------------------------------------- */ @@ -64,6 +83,18 @@ #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 */ /* ---------------------------------------------------------------- */ -- cgit v1.2.3