FYI: minor include issue with older systems - strcasecmp not always in string.h

From: Date: Tue, 19 Oct 2010 15:21:37 +0000
Subject: FYI: minor include issue with older systems - strcasecmp not always in string.h
Groups: php.internals 
Request: Send a blank email to internals+get-49931@lists.php.net to get a copy of this message
While performing a build on AIX433 I get the following error. /data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c: In function `_zip_name_locate': /data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: `strcasecmp' undeclared (first use in this function) /data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: (Each undeclared identifier is reported only once /data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: for each function it appears in.) make: *** [ext/zip/lib/zip_name_locate.lo] Error 1 I am able to fix it with: File: ext/zip/lib/zip_name_locate.c +34 ^L +35 +36 #include <string.h> +37 #ifdef _AIX +38 /* for AIX433 actually! */ +39 #include <strings.h> +40 #endif +41 +42 #include "zipint.h" +43 +44 ^L

« previous php.internals (#49931) next »