From: Dan Fandrich Date: Wed, 2 Jul 2008 18:34:00 +0000 (+0000) Subject: Support Open Watcom C on Linux (as well as Windows). X-Git-Tag: cares-1_5_3~398 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee64d14733266ce533eeb3cbc86bd80212527b81;p=curl Support Open Watcom C on Linux (as well as Windows). --- diff --git a/CHANGES b/CHANGES index aa43d9ebd..ed1213cb5 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,9 @@ Changelog +Daniel Fandrich (2 Jul 2008) +- Support Open Watcom C on Linux (as well as Windows). + Yang Tse (2 Jul 2008) - The previously committed fix for bug report #1999181 prevented using the monotonic clock on any system without an always supported POSIX compliant diff --git a/include/curl/curl.h b/include/curl/curl.h index 349a37714..8182e9c28 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -71,7 +71,7 @@ #ifndef _WIN32_WCE #include #endif -#ifndef __WATCOMC__ +#if !defined(WIN32) || !defined(__WATCOMC__) #include #endif #include diff --git a/lib/if2ip.c b/lib/if2ip.c index 18696e9e7..94a09c11e 100644 --- a/lib/if2ip.c +++ b/lib/if2ip.c @@ -39,7 +39,8 @@ */ #if !defined(WIN32) && !defined(__BEOS__) && !defined(__CYGWIN__) && \ !defined(__riscos__) && !defined(__INTERIX) && !defined(NETWARE) && \ - !defined(__AMIGA__) && !defined(__minix) && !defined(__SYMBIAN32__) + !defined(__AMIGA__) && !defined(__minix) && !defined(__SYMBIAN32__) && \ + !defined(__WATCOMC__) #ifdef HAVE_SYS_SOCKET_H #include