diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2022-11-02 20:46:30 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2022-11-02 23:39:31 +0000 |
commit | c6bed28c3416c86995ec584f33f01d9e32008c5a (patch) | |
tree | 1c4c527829e1df774bb2da21dd48657b5bb39912 | |
parent | 7e5235f5a858116d1fcbbdbb78a5db401518bc91 (diff) | |
download | toolchains-c6bed28c3416c86995ec584f33f01d9e32008c5a.tar.gz toolchains-c6bed28c3416c86995ec584f33f01d9e32008c5a.tar.bz2 |
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.
-rw-r--r-- | sdk/recipes/patches/openssl/ppc-amigaos/atomics-are-broken.p | 22 |
1 files changed, 22 insertions, 0 deletions
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 <stdatomic.h> + + # 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 <stdatomic.h> + # define HAVE_C11_ATOMICS + # endif |