This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/libiberty] Enhance FILENAME_CMP for Windows filesystems
- From: Andreas Schwab <schwab at suse dot de>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: DJ Delorie <dj at redhat dot com>, gcc-patches at gcc dot gnu dot org, gdb-patches at sourceware dot org
- Date: Mon, 02 Apr 2007 13:21:40 +0200
- Subject: Re: [RFA/libiberty] Enhance FILENAME_CMP for Windows filesystems
- References: <20070328191845.GB3956@adacore.com> <200703281930.l2SJUYLW003949@greed.delorie.com> <20070328193743.GC3956@adacore.com> <20070328202443.GD3956@adacore.com> <jeps6nn768.fsf@sykes.suse.de> <20070402063502.GB3963@adacore.com>
Joel Brobecker <brobecker@adacore.com> writes:
>> > #ifdef HAVE_STRING_H
>> > #include <string.h>
>> > #endif
>>
>> That won't work without #include "config.h".
>
> Ah ha! Ben Elliston wrote me privately that he gets a warning
> on x86-linux (Ubunty) that strcmp.h is not defined. That would
> probably explain it. Thank you!
>
> Unfortunately, I'm going to be unavailable for the next two of three
> days. I'll try to fix it ASAP, but if someone could do this for me,
> I would really appreciate it.
I've checked this in.
Andreas.
2007-04-02 Andreas Schwab <schwab@suse.de>
* filename_cmp.c: Include "config.h".
--- libiberty/filename_cmp.c.~1.1.~ 2007-03-29 23:03:48.000000000 +0200
+++ libiberty/filename_cmp.c 2007-04-01 22:59:02.000000000 +0200
@@ -16,6 +16,10 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef HAVE_STRING_H
#include <string.h>
#endif
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."