summaryrefslogtreecommitdiffstats
path: root/e_os.h
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:33:50 +0200
commit84b9fe9293e5e37525e86714d6c2568539babbfb (patch)
tree5e9f0c91385275b17705455b0e65da4e9f4a2ebd /e_os.h
parentf3da979ee199bff139a643a16636c8c8e36a3f79 (diff)
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/18293)
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index fd45d2088b..9e2f14072f 100644
--- a/e_os.h
+++ b/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