aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdk-pixbuf/glibc-malloc.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-05 15:24:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-05 15:29:20 +0200
commit4ebee3534791a84ec23422f110dc7d1334273f70 (patch)
treeb4ac645336eb0bb5fe152145530b31a1c609e4d7 /main/gdk-pixbuf/glibc-malloc.patch
parent410bd401e8f86cf2062bb7b61ffdc5238d69dc00 (diff)
downloadaports-4ebee3534791a84ec23422f110dc7d1334273f70.tar.bz2
aports-4ebee3534791a84ec23422f110dc7d1334273f70.tar.xz
main/gdk-pixbuf: security upgrade to 2.32.1
ref #4733 fixes #4734
Diffstat (limited to 'main/gdk-pixbuf/glibc-malloc.patch')
-rw-r--r--main/gdk-pixbuf/glibc-malloc.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/gdk-pixbuf/glibc-malloc.patch b/main/gdk-pixbuf/glibc-malloc.patch
new file mode 100644
index 0000000000..6986d17464
--- /dev/null
+++ b/main/gdk-pixbuf/glibc-malloc.patch
@@ -0,0 +1,28 @@
+Work around for a test that should not build on non-glibc systems.
+
+Problem and proper fix is reported to:
+https://bugzilla.gnome.org/show_bug.cgi?id=756078
+
+diff --git a/tests/pixbuf-lowmem.c b/tests/pixbuf-lowmem.c
+index ae71788..9e9571f 100644
+--- a/tests/pixbuf-lowmem.c
++++ b/tests/pixbuf-lowmem.c
+@@ -24,6 +24,7 @@
+ #include <time.h>
+ #include <string.h>
+
++#ifdef __GLIBC__
+ #define PRETEND_MEM_SIZE (16 * 1024 * 1024)
+ #define REMAINING_MEM_SIZE 100000
+
+@@ -225,3 +226,10 @@ main (int argc, char **argv)
+
+ return 0;
+ }
++#else
++int
++main (int argc, char **argv)
++{
++ return 0;
++}
++#endif