diff options
author | Rosen Penev <rosenp@gmail.com> | 2021-03-03 17:59:58 -0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-11-20 21:08:25 +0100 |
commit | 9211af712f29556be2d1a757a0d17c55580e4eab (patch) | |
tree | 0f2ce20ab645a0dd9877556f397b27c7d71f4565 /tools/cpio/patches/010-clang.patch | |
parent | 25df32708606a364322cb721492241bb6e5c66f4 (diff) | |
download | upstream-9211af712f29556be2d1a757a0d17c55580e4eab.tar.gz upstream-9211af712f29556be2d1a757a0d17c55580e4eab.tar.bz2 upstream-9211af712f29556be2d1a757a0d17c55580e4eab.zip |
tools/cpio: fix compilation with clang
A define dealing with builtin type is wrong. A gnulib update fixes
this, but that requires a new cpio version.
Refresh other patch.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools/cpio/patches/010-clang.patch')
-rw-r--r-- | tools/cpio/patches/010-clang.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/cpio/patches/010-clang.patch b/tools/cpio/patches/010-clang.patch new file mode 100644 index 0000000000..89c7a8149e --- /dev/null +++ b/tools/cpio/patches/010-clang.patch @@ -0,0 +1,11 @@ +--- a/gnu/xalloc-oversized.h ++++ b/gnu/xalloc-oversized.h +@@ -52,7 +52,7 @@ typedef size_t __xalloc_count_type; + #elif ((5 <= __GNUC__ \ + || (__has_builtin (__builtin_mul_overflow) \ + && __has_builtin (__builtin_constant_p))) \ +- && !__STRICT_ANSI__) ++ && !__STRICT_ANSI__) && !defined(__clang__) + # define xalloc_oversized(n, s) \ + (__builtin_constant_p (n) && __builtin_constant_p (s) \ + ? __xalloc_oversized (n, s) \ |