summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2022-05-27 23:08:17 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2022-05-27 23:08:17 +0100
commit2549a2d898f96e636f6052f2017824ec42186da3 (patch)
tree89ef3c96a77eca9ebb872150b395d65c6ce304c5
parent5aa9b885910ff71cd07040f3ba2f973a4ec96723 (diff)
downloadtoolchains-2549a2d898f96e636f6052f2017824ec42186da3.tar.gz
toolchains-2549a2d898f96e636f6052f2017824ec42186da3.tar.bz2
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.
-rw-r--r--sdk/recipes/patches/openssl/crypto.ctype.c.p11
1 files changed, 11 insertions, 0 deletions
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