This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: strcasecmp prototype
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: ARistovski at qnx dot com (Aleksandar Ristovski)
- Cc: gdb-patches at sourceware dot org, RMansfield at qnx dot com (Ryan Mansfield), Ulrich dot Weigand at de dot ibm dot com (Ulrich Weigand)
- Date: Thu, 8 Nov 2007 22:07:18 +0100 (CET)
- Subject: Re: strcasecmp prototype
Aleksandar Ristovski wrote:
> The attached patch adds #include <strings.h> to gdb_string.h. It is needed
> for c-exp.y, for strcasecmp declaration.
It looks like this is provided in <string.h> by glibc headers,
but this is really an extension; <strings.h> is the place POSIX
says should be used for strcasecmp ...
So I guess the patch is the right thing to do.
> 2007-11-06 Aleksandar Ristovski <aristovski@qnx.com>
>
> * gdb_string.h: Include <strings.h>.
I've committed this.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com