Commit f9d2fe251f3a104df656ab6ffc64821893ab9003

Paul Eggert 2012-03-10T12:15:44

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.