aboutsummaryrefslogtreecommitdiff
path: root/posix/regex.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-01-30 05:22:32 +0000
committerUlrich Drepper <drepper@redhat.com>2004-01-30 05:22:32 +0000
commitdf759c2a218d1b52cfaf199b24e9f35dc93a3af4 (patch)
treee750512f8e6805f1fb5139ae375286c72fcc3ef8 /posix/regex.c
parent4bb333cdd2473418d798593c3dd448aa9b8b28e0 (diff)
downloadglibc-df759c2a218d1b52cfaf199b24e9f35dc93a3af4.zip
glibc-df759c2a218d1b52cfaf199b24e9f35dc93a3af4.tar.gz
glibc-df759c2a218d1b52cfaf199b24e9f35dc93a3af4.tar.bz2
Update.
2004-01-28 Paolo Bonzini <bonzini@gnu.org> Merge regex changes in gawk. * posix/regcomp.c (build_range_exp) [!_LIBC]: Check validity of collation elements. * posix/regex.c: Include limits.h. * posix/regex.h: Document REG_ECOLLATE correctly. * posix/regex_internal.h [!_LIBC && !ENABLE_NLS]: Disable NLS.
Diffstat (limited to 'posix/regex.c')
-rw-r--r--posix/regex.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/posix/regex.c b/posix/regex.c
index 4c38262..7a4f304 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -74,6 +74,12 @@
/* POSIX says that <sys/types.h> must be included (by the caller) before
<regex.h>. */
#include <sys/types.h>
+
+/* On some systems, limits.h sets RE_DUP_MAX to a lower value than
+ GNU regex allows. Include it before <regex.h>, which correctly
+ #undefs RE_DUP_MAX and sets it to the right value. */
+#include <limits.h>
+
#include <regex.h>
#include "regex_internal.h"