summaryrefslogtreecommitdiff
path: root/graphics/xcftools/files/patch-src_xcf2png.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xcftools/files/patch-src_xcf2png.c')
-rw-r--r--graphics/xcftools/files/patch-src_xcf2png.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/xcftools/files/patch-src_xcf2png.c b/graphics/xcftools/files/patch-src_xcf2png.c
new file mode 100644
index 000000000000..c9426bb76080
--- /dev/null
+++ b/graphics/xcftools/files/patch-src_xcf2png.c
@@ -0,0 +1,16 @@
+--- src/xcf2png.c.orig 2013-02-12 19:30:10.000000000 +0100
++++ src/xcf2png.c 2014-09-11 01:38:20.000000000 +0200
+@@ -23,6 +23,13 @@
+ #include "palette.h"
+
+ #include <png.h>
++#ifndef png_voidp_NULL
++#define png_voidp_NULL (png_voidp)NULL
++#endif
++#ifndef png_error_ptr_NULL
++#define png_error_ptr_NULL (png_error_ptr)NULL
++#endif
++
+ #include <stdlib.h>
+ #include <string.h>
+ #include <locale.h>