From 77e4a0d2c9358eced24027df259a0ee1d090f05c Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 11 Jul 2011 07:32:39 -0600 Subject: [PATCH] regex: avoid compiler warning Although glibc leaks strcasecmp through , this behavior is not required by POSIX, and HP NonStop needs * lib/regex.c (includes): Include , for use of strcasecmp in regcomp.c. Reported by Jachim Schmitz. Signed-off-by: Eric Blake --- ChangeLog | 7 +++++++ lib/regex.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 41e97e2408..9f98405ab3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-07-11 Eric Blake + + regex: avoid compiler warning + * lib/regex.c (includes): Include , for use of + strcasecmp in regcomp.c. + Reported by Jachim Schmitz. + 2011-07-09 Paul Eggert stdint: respect system's intmax_t if INTMAX_MAX diff --git a/lib/regex.c b/lib/regex.c index 210bf91c48..af47056d73 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -53,6 +53,7 @@ GNU regex allows. Include it before , which correctly #undefs RE_DUP_MAX and sets it to the right value. */ #include +#include #include #include "regex_internal.h" -- 2.30.2