cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] AIX compilation error

From: Tor Arntsen <tor_at_spacetec.no>
Date: Tue, 9 Mar 2004 16:34:37 +0100

Here's another compilation problem that's shadowed by having a system-installed
curl on the compilation machine. A build on an AIX box without curl installed
tripped this. Symptom:

xlc -DHAVE_CONFIG_H -I. -I../../../curl/tests/server -I../../lib -I../../src -I../../../curl/lib -DCURLDEBUG -g -g -c ../../../curl/tests/server/sws.c
"../../../curl/lib/setup.h", line 142.10: 1506-296 (S) #include file <curl/stdcheaders.h> not found.
make[2]: *** [sws.o] Error 1
make[2]: Leaving directory `/users/tor/curl-build/build-23376/tests/server'

Fix follows below.

-Tor

----
Index: lib/setup.h
===================================================================
RCS file: /repository/curl/lib/setup.h,v
retrieving revision 1.52
diff -u -u -r1.52 setup.h
--- lib/setup.h	4 Mar 2004 15:32:18 -0000	1.52
+++ lib/setup.h	9 Mar 2004 15:23:56 -0000
@@ -136,11 +136,6 @@
 #else
 #include <curl/stdcheaders.h>
 #endif
-
-#else
-#ifdef _AIX
-#include <curl/stdcheaders.h>
-#endif
 #endif
 
 #if defined(CURLDEBUG) && defined(HAVE_ASSERT_H)
Received on 2004-03-09