regex: allow inclusion of <regex.h> before <limits.h>
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Mar 2012 20:15:44 +0000 (12:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Mar 2012 20:16:07 +0000 (12:16 -0800)
commitf9d2fe251f3a104df656ab6ffc64821893ab9003
tree34a39e924068d20ed029e30caa24fb2cbd98cd05
parentef693061d753a982cf1bdd627b1d1c158f54ba06
regex: allow inclusion of <regex.h> before <limits.h>

Without this patch, portable programs had to include <limits.h> before
<regex.h> if they wanted a consistent value for RE_DUP_MAX.
I ran into this problem with a test version of GNU grep on Solaris 8.
* lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
This is done conditionally so that this change can be merged
back to glibc.
* m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
using the included regex.
ChangeLog
lib/regex.h
m4/regex.m4