You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Victor J. Orlikowski" <v....@gte.net> on 2000/11/13 17:17:15 UTC
[PATCH] Fix type complaints due to exports.c hack
Until a better solution is found, this fixes up the type complaints
received under xlC and other compilers for the compilation of
exports.c
Index: src/build/buildexports.sh
===================================================================
RCS file: /cvs/apache/apache-2.0/src/build/buildexports.sh,v
retrieving revision 1.2
diff -u -d -b -r1.2 buildexports.sh
--- buildexports.sh 2000/11/01 13:03:01 1.2
+++ buildexports.sh 2000/11/13 16:15:29
@@ -22,7 +22,7 @@
do
if [ "x`echo $LINE | egrep '^[:space:]*apr_'`" != "x" ]; then
newline=`echo "$LINE" |\
- sed -e 's%^\(.*\)%const void *ap_hack_\1 = \1\;%'`
+ sed -e 's%^\(.*\)%const void *ap_hack_\1 = \(const void *\)\1\;%'`
echo $newline
fi
done
Index: src/main/http_main.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/main/http_main.c,v
retrieving revision 1.69
diff -u -d -b -r1.69 http_main.c
--- http_main.c 2000/11/02 18:51:08 1.69
+++ http_main.c 2000/11/13 16:15:30
@@ -299,7 +299,7 @@
* the web server. exports.c is generated by buildconf, and it
* has all of the apr functions specified by httpd.exp.
*/
- ap_ugly_hack = apr_initialize;
+ ap_ugly_hack = (void *) apr_initialize;
#endif
process = create_process(argc, argv);
Victor
--
Victor J. Orlikowski
======================
v.j.orlikowski@gte.net
vjo@raleigh.ibm.com
vjo@us.ibm.com