summaryrefslogtreecommitdiff
path: root/lang/php81/files/patch-TSRM_TSRM.c
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2023-04-12 06:05:35 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-04-12 07:39:13 +0200
commitc89b6f2799891129e89d1b4fedf8e25865241060 (patch)
treeb377cfff0c7392a7eaff457fd7a114f926de44e2 /lang/php81/files/patch-TSRM_TSRM.c
parentprint/xpdfopen: Update distinfo from text20230313 (diff)
lang/php8[12]: Fix build on aarch64 with ZTS
- Refresh patches PR: 266175 Reported by: thresh@nginx.com Sponsored by: Bounce Experts
Diffstat (limited to 'lang/php81/files/patch-TSRM_TSRM.c')
-rw-r--r--lang/php81/files/patch-TSRM_TSRM.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/php81/files/patch-TSRM_TSRM.c b/lang/php81/files/patch-TSRM_TSRM.c
new file mode 100644
index 000000000000..f2e0059dcede
--- /dev/null
+++ b/lang/php81/files/patch-TSRM_TSRM.c
@@ -0,0 +1,11 @@
+--- TSRM/TSRM.c.orig 2023-04-12 03:52:48 UTC
++++ TSRM/TSRM.c
+@@ -750,7 +750,7 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
+ asm ("leal _tsrm_ls_cache@ntpoff,%0"
+ : "=r" (ret));
+ return ret;
+-#elif defined(__aarch64__)
++#elif defined(__aarch64__) && !defined(__FreeBSD__)
+ size_t ret;
+
+ # ifdef __APPLE__