From c6bed28c3416c86995ec584f33f01d9e32008c5a Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Wed, 2 Nov 2022 20:46:30 +0000 Subject: OpenSSL/ppc-amigaos: avoid broken stdatomic.h For whatever reason, when the toolchain is built against newlib, GCC does not provide stdint.h, and thus does not pre-define the likes of __INT_LEAST8_TYPE__ or __UINTPTR_TYPE__. Thus, including stdatomic.h (which expects these to be defined) fails hard. Drop this if ever the toolchain is fixed. --- .../openssl/ppc-amigaos/atomics-are-broken.p | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sdk/recipes/patches/openssl/ppc-amigaos/atomics-are-broken.p diff --git a/sdk/recipes/patches/openssl/ppc-amigaos/atomics-are-broken.p b/sdk/recipes/patches/openssl/ppc-amigaos/atomics-are-broken.p new file mode 100644 index 0000000..a08fec5 --- /dev/null +++ b/sdk/recipes/patches/openssl/ppc-amigaos/atomics-are-broken.p @@ -0,0 +1,22 @@ +--- include/internal/tsan_assist.h.orig 2017-11-21 22:49:00.185608040 +0000 ++++ include/internal/tsan_assist.h 2017-11-21 22:49:21.488219518 +0000 +@@ -48,7 +48,7 @@ + */ + + #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ +- && !defined(__STDC_NO_ATOMICS__) ++ && !defined(__STDC_NO_ATOMICS__) && !defined(__AMIGA__) + # include + + # if defined(ATOMIC_POINTER_LOCK_FREE) \ +--- include/internal/refcount.h.orig 2017-11-21 22:49:00.185608040 +0000 ++++ include/internal/refcount.h 2017-11-21 22:49:21.488219518 +0000 +@@ -15,7 +15,7 @@ + + # ifndef OPENSSL_DEV_NO_ATOMICS + # if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ +- && !defined(__STDC_NO_ATOMICS__) ++ && !defined(__STDC_NO_ATOMICS__) && !defined(__AMIGA__) + # include + # define HAVE_C11_ATOMICS + # endif -- cgit v1.2.3