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

From: Date: Tue, 19 Oct 2010 15:56:43 +0000
Subject: Re: FYI: minor include issue with older systems - strcasecmp not always in string.h
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-49932@lists.php.net to get a copy of this message
hi, Can you open a bug report and attach a patch to it pls? Thanks! On Tue, Oct 19, 2010 at 5:21 PM, Michael Felt <mamfelt@gmail.com> wrote: > 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 > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#49932) next »