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 --- lib/Makefile.netware | 3 ++- lib/config-amigaos.h | 1 + lib/config-mac.h | 2 ++ lib/config-riscos.h | 3 +++ lib/config-tpf.h | 3 +++ lib/config-win32.h | 6 ++++++ lib/config-win32ce.h | 6 ++++++ lib/config.dos | 1 + 8 files changed, 24 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Makefile.netware b/lib/Makefile.netware index 291b24ff6..d9489c4c0 100644 --- a/lib/Makefile.netware +++ b/lib/Makefile.netware @@ -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 diff --git a/lib/config-amigaos.h b/lib/config-amigaos.h index 88e8f5c97..3d880003d 100644 --- a/lib/config-amigaos.h +++ b/lib/config-amigaos.h @@ -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 diff --git a/lib/config-mac.h b/lib/config-mac.h index 35eeef6cc..afca67775 100644 --- a/lib/config-mac.h +++ b/lib/config-mac.h @@ -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 diff --git a/lib/config-riscos.h b/lib/config-riscos.h index bb4bafba5..e2877df75 100644 --- a/lib/config-riscos.h +++ b/lib/config-riscos.h @@ -119,6 +119,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/lib/config-tpf.h b/lib/config-tpf.h index 5deb112d2..6b1accc79 100644 --- a/lib/config-tpf.h +++ b/lib/config-tpf.h @@ -475,6 +475,9 @@ /* 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 header file. */ #define HAVE_SYS_FILIO_H 1 diff --git a/lib/config-win32.h b/lib/config-win32.h index 33322c839..871e6bef6 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -81,6 +81,9 @@ /* Define if you have the header file. */ #define HAVE_SYS_STAT_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 @@ -335,6 +338,9 @@ #define HAVE_STRUCT_SOCKADDR_STORAGE 1 #endif +/* Define this if you have struct timeval */ +#define HAVE_STRUCT_TIMEVAL 1 + /* ---------------------------------------------------------------- */ /* COMPILER SPECIFIC */ /* ---------------------------------------------------------------- */ diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index f9796a302..21afc4268 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -75,6 +75,9 @@ /* Define if you have the header file. */ #define HAVE_SYS_STAT_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 */ @@ -307,6 +310,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 + /* ---------------------------------------------------------------- */ /* COMPILER SPECIFIC */ /* ---------------------------------------------------------------- */ diff --git a/lib/config.dos b/lib/config.dos index a5df499c0..405399f87 100644 --- a/lib/config.dos +++ b/lib/config.dos @@ -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 -- cgit v1.2.3