diff options
Diffstat (limited to 'dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch')
| -rw-r--r-- | dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch b/dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch new file mode 100644 index 000000000000..5f21f442ee06 --- /dev/null +++ b/dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch @@ -0,0 +1,16 @@ +https://github.com/php/php-src/commit/72526609413e8a8cd768ed4966c17b1a9db6c12c.patch +From: Remi Collet <remi@remirepo.net> +Date: Mon, 22 Jan 2024 10:01:25 +0100 +Subject: [PATCH] Fix GH-13215 GCC 14 build + +--- a/Zend/zend_atomic.h ++++ b/Zend/zend_atomic.h +@@ -23,7 +23,7 @@ + ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || (__GNUC__ > (x))) + + /* Builtins are used to avoid library linkage */ +-#if __has_feature(c_atomic) ++#if __has_feature(c_atomic) && defined(__clang__) + #define HAVE_C11_ATOMICS 1 + #elif ZEND_GCC_PREREQ(4, 7) + #define HAVE_GNUC_ATOMICS 1 |
