curl-library
Problems with Open Watcom C
Date: Mon, 23 Jun 2008 15:41:55 -0700
I've been trying to get the Open Watcom C compiler (http://www.openwatcom.org)
working under Linux (targetting Linux) and have come up with a patch.
The problem is that there is already code specific to Watcom C in curl,
but apparently for a Windows or DOS target. I believe that this patch
should be safe, but I'd appreciate someone who knows Watcom double
checking it or even testing it under Windows.
Index: include/curl/curl.h
===================================================================
RCS file: /cvsroot/curl/curl/include/curl/curl.h,v
retrieving revision 1.356
diff -u -r1.356 curl.h
--- include/curl/curl.h 8 Jun 2008 21:04:47 -0000 1.356
+++ include/curl/curl.h 23 Jun 2008 20:48:20 -0000
@@ -71,7 +71,7 @@
#ifndef _WIN32_WCE
#include <sys/socket.h>
#endif
-#ifndef __WATCOMC__
+#if !defined(WIN32) || !defined(__WATCOMC__)
#include <sys/time.h>
#endif
#include <sys/types.h>
Index: lib/if2ip.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/if2ip.c,v
retrieving revision 1.53
diff -u -r1.53 if2ip.c
--- lib/if2ip.c 22 Apr 2008 22:53:54 -0000 1.53
+++ lib/if2ip.c 23 Jun 2008 20:48:21 -0000
@@ -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 <sys/socket.h>
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-06-24