summaryrefslogtreecommitdiffstats
path: root/build.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-02-13 12:19:20 +0100
committerRemi Collet <remi@php.net>2026-02-13 12:19:20 +0100
commit149717a4339a60c8d68cc490459981bd3ed7f8e9 (patch)
tree5315f55bc1de2709eb5f345c10569d3e341f4b03 /build.patch
parent770ad7abc32e05563b66c8cb50a8e2a3011aba73 (diff)
add upstream patch fixing build with GCC 16HEADmaster
Diffstat (limited to 'build.patch')
-rw-r--r--build.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..561a9e1
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,28 @@
+From abb4dfad9e446e77396de9e93003af5be7aa18da Mon Sep 17 00:00:00 2001
+From: Kleis Auke Wolthuizen <github@kleisauke.nl>
+Date: Sun, 18 Jan 2026 12:15:33 +0100
+Subject: [PATCH] memory: fix `VIPS_FREEF` for expression-like macros (#4836)
+
+Ensure the macro works correctly when F expands to an expression,
+such as `g_free()` using `free_sized()` (as available in the
+upcoming glibc 2.43).
+
+Resolves: #4835.
+---
+ ChangeLog | 1 +
+ libvips/include/vips/memory.h | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libvips/include/vips/memory.h b/libvips/include/vips/memory.h
+index 93e669340b..7073d1ea6a 100644
+--- a/libvips/include/vips/memory.h
++++ b/libvips/include/vips/memory.h
+@@ -41,7 +41,7 @@ extern "C" {
+ G_STMT_START \
+ { \
+ if (S) { \
+- (void) F((S)); \
++ (void) (F((S))); \
+ (S) = 0; \
+ } \
+ } \