From 2549a2d898f96e636f6052f2017824ec42186da3 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Fri, 27 May 2022 23:08:17 +0100 Subject: RISC OS: UnixLib doesn't support locale_t Not entirely true -- it gained support for that in 2019. However, the release our toolchain uses significantly predates that. Patch around it until someone has time to do something about it. --- sdk/recipes/patches/openssl/crypto.ctype.c.p | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sdk/recipes/patches/openssl/crypto.ctype.c.p (limited to 'sdk') diff --git a/sdk/recipes/patches/openssl/crypto.ctype.c.p b/sdk/recipes/patches/openssl/crypto.ctype.c.p new file mode 100644 index 0000000..e0ecc21 --- /dev/null +++ b/sdk/recipes/patches/openssl/crypto.ctype.c.p @@ -0,0 +1,11 @@ +--- crypto/ctype.c.orig 2022-05-27 00:00:00.000000000 +0000 +--- crypto/ctype.c 2022-05-27 00:00:00.000000000 +0000 +@@ -295,7 +295,7 @@ + /* str[n]casecmp_l is defined in POSIX 2008-01. Value is taken accordingly + * https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html */ + +-#if (defined OPENSSL_SYS_WINDOWS) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L) ++#if (defined OPENSSL_SYS_WINDOWS) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L && !defined(OPENSSL_SYS_RISCOS)) + + # if defined OPENSSL_SYS_WINDOWS + # define locale_t _locale_t -- cgit v1.2.3