changeset 7937:c9127d50c750

* lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the 2004-12-01 change by Jakub Jelinek, since this code won't compile if !LIBC. Problem reported by Bob Proulx.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 24 Jan 2007 07:15:57 +0000
parents b93a4036490a
children 8911922afa2d
files ChangeLog lib/fnmatch_loop.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
+	2004-12-01 change by Jakub Jelinek, since this code won't compile
+	if !LIBC.  Problem reported by Bob Proulx.
+
 2007-01-23  Bruno Haible  <bruno@clisp.org>
 
 	* lib/striconveh.c: Include c-strcaseeq.h.
--- a/lib/fnmatch_loop.c
+++ b/lib/fnmatch_loop.c
@@ -599,9 +599,12 @@
 			if (!is_range && c == fn)
 			  goto matched;
 
+#if _LIBC
 			/* This is needed if we goto normal_bracket; from
 			   outside of is_seqval's scope.  */
 			is_seqval = false;
+#endif
+
 			cold = c;
 			c = *p++;
 		      }