summaryrefslogtreecommitdiff
path: root/dev-lang/php/files/fix-musl-llvm.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-09 18:31:35 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-09 18:31:35 +0100
commitfb7c221776ce0bda5eb40ef32cb74daa98aed0d7 (patch)
tree0da74e27cfe965ce494b4be29eb9b4d04dda8259 /dev-lang/php/files/fix-musl-llvm.patch
parent7e8f29e487b79a183d66ca22f1e54dab5c47a409 (diff)
gentoo auto-resync : 09:04:2024 - 18:31:35
Diffstat (limited to 'dev-lang/php/files/fix-musl-llvm.patch')
-rw-r--r--dev-lang/php/files/fix-musl-llvm.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-lang/php/files/fix-musl-llvm.patch b/dev-lang/php/files/fix-musl-llvm.patch
new file mode 100644
index 000000000000..bf299837829c
--- /dev/null
+++ b/dev-lang/php/files/fix-musl-llvm.patch
@@ -0,0 +1,37 @@
+From 684f0d9e5946e92008404b3d5a131edc4f34f7da Mon Sep 17 00:00:00 2001
+From: Arnaud Le Blanc <arnaud.lb@gmail.com>
+Date: Thu, 4 Apr 2024 16:10:28 +0200
+Subject: [PATCH] Fix stream_cookie_seeker signature under musl
+
+---
+ main/streams/cast.c | 10 +++-------
+ 1 file changed, 3 insertions(+), 7 deletions(-)
+
+diff --git a/main/streams/cast.c b/main/streams/cast.c
+index 3bad65fbac1f5..8d9f4a9d2d54b 100644
+--- a/main/streams/cast.c
++++ b/main/streams/cast.c
+@@ -104,6 +104,9 @@ static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t siz
+
+ # ifdef COOKIE_SEEKER_USES_OFF64_T
+ static int stream_cookie_seeker(void *cookie, off64_t *position, int whence)
++# else
++static int stream_cookie_seeker(void *cookie, off_t *position, int whence)
++# endif
+ {
+
+ *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence);
+@@ -113,13 +116,6 @@ static int stream_cookie_seeker(void *cookie, off64_t *position, int whence)
+ }
+ return 0;
+ }
+-# else
+-static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence)
+-{
+-
+- return php_stream_seek((php_stream *)cookie, position, whence);
+-}
+-# endif
+
+ static int stream_cookie_closer(void *cookie)
+ {