]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Watcom lacks <sys/time.h>.
authorGisle Vanem <gvanem@broadpark.no>
Tue, 29 Aug 2006 18:45:55 +0000 (18:45 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Tue, 29 Aug 2006 18:45:55 +0000 (18:45 +0000)
lib/connect.c
lib/cookie.h
lib/dict.c
lib/easy.c
lib/file.c
lib/http.c
lib/telnet.c
lib/tftp.c
lib/timeval.h
lib/transfer.c
lib/url.c

index 4e7f4f8ea1ac243d1d807ce49b70f936b707df24..d28f1f094bfe81f1120393b830e5296061f1cc00 100644 (file)
@@ -25,7 +25,9 @@
 
 #ifndef WIN32
 /* headers for non-win32 */
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
index 22dc755c42ea1764f605f213e1d01fe794f35677..6d1b065b2ea4e8728ca0921bc1979f9b0a4084b9 100644 (file)
@@ -24,7 +24,7 @@
  ***************************************************************************/
 
 #include <stdio.h>
-#ifdef WIN32
+#if defined(WIN32) || defined(__WATCOMC__)
 #include <time.h>
 #else
 #include <sys/time.h>
index d5a2400ca99080cad52f17a5218356831339ab0d..86d00c961e11f37a3d627405615f3a4a3d4154f1 100644 (file)
@@ -46,7 +46,9 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index 827463ad872d966fe20e2b60da6f4eec01d5a006..5a41383619509af2ba8a6e600a32651d8d044d05 100644 (file)
@@ -48,7 +48,9 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index 7ac53f19b4e5d96183b95ca64f75c8a29ea5b98f..83cf8c679ca1647cadf68c6edc378d692919a739 100644 (file)
@@ -48,7 +48,9 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index aab0b85a2a07ec9e2f5948001c787a42a33be424..c148b4c79edb9d9de263d790b5b1b6cd24b0665b 100644 (file)
@@ -47,7 +47,9 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 
 #ifdef HAVE_TIME_H
 #ifdef TIME_WITH_SYS_TIME
index 8939dd1a698771ba6015f4ee606f8397326b8b62..9cbc666bc48efc2c13f360c47d40444ca573b7a5 100644 (file)
@@ -45,7 +45,9 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index 61800cc3dfdc702343013d5887efb1c10e1b45e4..9ae3397340db934dfdbebdbbd06681a3f9b4f3f7 100644 (file)
@@ -45,7 +45,9 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index 6be5e4276a9cb9772d47f3c646f5c04ea399f3f1..a03ba2a6e3fe54a0d21342791b7b5e7cd54292ae 100644 (file)
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <time.h>
 #else
+#ifndef __WATCOMC__     /* todo: Add HAVE_SYS_TIME_H */
 #include <sys/time.h>
 #endif
+#endif
 
 #ifndef HAVE_GETTIMEOFDAY
 #if !defined(_WINSOCKAPI_) && !defined(__MINGW32__) && !defined(_AMIGASF) && \
index fb1bcb286034980252f696474bf39706d65de3ad..79ce14df2a3065c484eaa9eb5a6032c647b2e9fc 100644 (file)
@@ -51,7 +51,9 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index 17f543615340e0e547bd203e47b6f714ac362565..8bb429ba4375123da2a610d877f2ef8195bb0069 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -46,7 +46,9 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif