summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-05-10 17:00:26 +0200
committerTomas Mraz <tomas@openssl.org>2022-05-13 08:30:48 +0200
commit92d050167713f9a094c149c38435b07512c68936 (patch)
tree2f8ad0729714e737d7f44c20f37a96095e0875a8 /include
parent26ccb0e4e0b100423184636457cd6aab4cc779ab (diff)
downloadopenssl-new-92d050167713f9a094c149c38435b07512c68936.tar.gz
Add fallback in case of locale initialization failure
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18282)
Diffstat (limited to 'include')
-rw-r--r--include/internal/e_os.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/e_os.h b/include/internal/e_os.h
index fd45d2088b..9e2f14072f 100644
--- a/include/internal/e_os.h
+++ b/include/internal/e_os.h
@@ -421,6 +421,7 @@ inline int nssgetpid();
# define strcasecmp_l _stricmp_l
# define strncasecmp_l _strnicmp_l
# define strcasecmp _stricmp
+# define strncasecmp _strnicmp
# elif !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809L \
|| defined(OPENSSL_SYS_TANDEM)
# ifndef OPENSSL_NO_LOCALE