Removed "#ifndef__WATCOMC__". Use "#ifdef HAVE_SYS_TIME_H" instead.
authorGisle Vanem <gvanem@broadpark.no>
Wed, 30 Aug 2006 16:17:06 +0000 (16:17 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Wed, 30 Aug 2006 16:17:06 +0000 (16:17 +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 d28f1f0..17dddaf 100644 (file)
@@ -25,7 +25,7 @@
 
 #ifndef WIN32
 /* headers for non-win32 */
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_SYS_TYPES_H
index 6d1b065..57c3acb 100644 (file)
  ***************************************************************************/
 
 #include <stdio.h>
-#if defined(WIN32) || defined(__WATCOMC__)
+#if defined(WIN32)
 #include <time.h>
 #else
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
+#endif
 
 #include <curl/curl.h>
 
index 6a56979..1f130ad 100644 (file)
@@ -46,7 +46,7 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_UNISTD_H
index 5a41383..3356ca3 100644 (file)
@@ -48,7 +48,7 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_UNISTD_H
index 83cf8c6..4fb5b1f 100644 (file)
@@ -48,7 +48,7 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_UNISTD_H
index c148b4c..1b63882 100644 (file)
@@ -47,7 +47,7 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 
index 9cbc666..5962719 100644 (file)
@@ -45,7 +45,7 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_UNISTD_H
index 9ae3397..8901e77 100644 (file)
@@ -45,7 +45,7 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_UNISTD_H
index a03ba2a..84ea274 100644 (file)
@@ -33,7 +33,7 @@
 #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
 #include <time.h>
 #else
-#ifndef __WATCOMC__     /* todo: Add HAVE_SYS_TIME_H */
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #endif
index 79ce14d..4fab23c 100644 (file)
@@ -51,7 +51,7 @@
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_UNISTD_H
index 8bb429b..bc6e3f2 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -46,7 +46,7 @@
 #include <sys/socket.h>
 #endif
 #include <netinet/in.h>
-#ifndef __WATCOMC__
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #ifdef HAVE_UNISTD_H