curl-library
Re: Daily builds for AIX - possibly
Date: Mon, 2 Feb 2004 19:21:51 +0100
On Feb 2, 15:06, Daniel Stenberg wrote:
>If you pass --enable-debug in the configure options, these ones will be tested
>as well.
But then it won't compile:
xlc -DHAVE_CONFIG_H -I../../curl/include -I../lib -I../../curl/lib -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DCURLDEBUG -g -g -c -M ../../curl/lib/file.c -DPIC
"../../curl/lib/memdebug.h", line 73.9: 1506-213 (S) Macro name accept cannot be redefined.
"../../curl/lib/memdebug.h", line 73.9: 1506-358 (I) "accept" is defined on line 131 of /usr/include/sys/socket.h.
[...]
On AIX5.1 'accept' is a macro.
It won't hurt to add an #undef to memdebug.h, presumably?
-Tor
Index: lib/memdebug.h
===================================================================
RCS file: /repository/curl/lib/memdebug.h,v
retrieving revision 1.21
diff -u -r1.21 memdebug.h
--- lib/memdebug.h 29 Jan 2004 13:56:45 -0000 1.21
+++ lib/memdebug.h 2 Feb 2004 18:21:17 -0000
@@ -70,6 +70,7 @@
#define socket(domain,type,protocol)\
curl_socket(domain,type,protocol,__LINE__,__FILE__)
+#undef accept
#define accept(sock,addr,len)\
curl_accept(sock,addr,len,__LINE__,__FILE__)
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-02-02