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