diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-12 19:04:46 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-12 19:04:46 +0000 |
commit | 7b958a9fb9900c1447c577cc16a838177b2ad647 (patch) | |
tree | 65bcda2596292afbd5c0b94631e9d397d743bfc8 /unmaintained/libc++/check-for-musl-libcs-max_align_t.patch | |
parent | 5d9a3ff79d1bd8fe3e7e296e62efb6de2d96bcd4 (diff) | |
download | aports-7b958a9fb9900c1447c577cc16a838177b2ad647.tar.bz2 aports-7b958a9fb9900c1447c577cc16a838177b2ad647.tar.xz |
testing/libc++: move to unmaintained
Diffstat (limited to 'unmaintained/libc++/check-for-musl-libcs-max_align_t.patch')
-rw-r--r-- | unmaintained/libc++/check-for-musl-libcs-max_align_t.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/unmaintained/libc++/check-for-musl-libcs-max_align_t.patch b/unmaintained/libc++/check-for-musl-libcs-max_align_t.patch new file mode 100644 index 0000000000..467306949a --- /dev/null +++ b/unmaintained/libc++/check-for-musl-libcs-max_align_t.patch @@ -0,0 +1,18 @@ +libc++'s stddef.h uses non-standard macros to detect if max_align_t exists, +which break on musl. We reluctantly add musl's non-public macro the list +for now, but this should be fixed more fundamentally. + +diff --git a/libcxx/include/stddef.h b/libcxx/include/stddef.h +index 8841bbe..faf8552 100644 +--- a/libcxx/include/stddef.h ++++ b/libcxx/include/stddef.h +@@ -53,7 +53,8 @@ using std::nullptr_t; + } + + // Re-use the compiler's <stddef.h> max_align_t where possible. +-#if !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T) ++#if !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T) && \ ++ !defined(__DEFINED_max_align_t) + typedef long double max_align_t; + #endif + |