diff options
Diffstat (limited to 'main/gdk-pixbuf/glibc-malloc.patch')
-rw-r--r-- | main/gdk-pixbuf/glibc-malloc.patch | 28 |
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 |