From: Eric Covener Date: Sat, 21 Nov 2015 19:35:24 +0000 (+0000) Subject: stick with underlying strcasecmp on EBCDIC builds X-Git-Tag: 2.5.0-alpha~2620 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bede0ff13f68555feb9fcb888ab32ee61c06e44;p=thirdparty%2Fapache%2Fhttpd.git stick with underlying strcasecmp on EBCDIC builds git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715554 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index aafb68d961e..19b3d8b11c8 100644 --- a/server/util.c +++ b/server/util.c @@ -3172,6 +3172,7 @@ AP_DECLARE(int) ap_array_str_contains(const apr_array_header_t *array, return (ap_array_str_index(array, s, 0) >= 0); } +#if !APR_CHARSET_EBCDIC /* * Provide our own known-fast implementation of str[n]casecmp() * NOTE: ASCII only! @@ -3238,3 +3239,14 @@ AP_DECLARE(int) ap_strncasecmp(const char *s1, const char *s2, apr_size_t n) } return (0); } +#else +AP_DECLARE(int) ap_strcasecmp(const char *s1, const char *s2) +{ + return strcasecmp(s1, s2); +} + +AP_DECLARE(int) ap_strncasecmp(const char *s1, const char *s2, apr_size_t n) +{ + return strncasecmp(s1, s2, n); +} +#endif /*APR_CHARSET_EBCDIC*/