summaryrefslogtreecommitdiff
path: root/devel/directfb/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/directfb/files')
-rw-r--r--devel/directfb/files/patch-interfaces-IDirectFBImageProvider-idirectfbimageprovider_png.c28
-rw-r--r--devel/directfb/files/patch-tools-directfb-csource.c19
-rw-r--r--devel/directfb/files/patch-tools-mkdfiff.c11
-rw-r--r--devel/directfb/files/patch-tools-mkdgifft.cpp11
4 files changed, 69 insertions, 0 deletions
diff --git a/devel/directfb/files/patch-interfaces-IDirectFBImageProvider-idirectfbimageprovider_png.c b/devel/directfb/files/patch-interfaces-IDirectFBImageProvider-idirectfbimageprovider_png.c
new file mode 100644
index 000000000000..10773d9c32a6
--- /dev/null
+++ b/devel/directfb/files/patch-interfaces-IDirectFBImageProvider-idirectfbimageprovider_png.c
@@ -0,0 +1,28 @@
+--- interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c.orig 2011-05-05 20:00:29.000000000 +0200
++++ interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c 2012-05-01 09:15:37.000000000 +0200
+@@ -33,6 +33,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <png.h>
++#include <pngpriv.h>
+ #include <string.h>
+ #include <stdarg.h>
+
+@@ -207,7 +207,7 @@
+ if (!data->png_ptr)
+ goto error;
+
+- if (setjmp( data->png_ptr->jmpbuf )) {
++ if (setjmp( png_jmpbuf(data->png_ptr))) {
+ D_ERROR( "ImageProvider/PNG: Error reading header!\n" );
+ goto error;
+ }
+@@ -292,7 +292,7 @@
+ rect = dst_data->area.wanted;
+ }
+
+- if (setjmp( data->png_ptr->jmpbuf )) {
++ if (setjmp( png_jmpbuf(data->png_ptr))) {
+ D_ERROR( "ImageProvider/PNG: Error during decoding!\n" );
+
+ if (data->stage < STAGE_IMAGE)
diff --git a/devel/directfb/files/patch-tools-directfb-csource.c b/devel/directfb/files/patch-tools-directfb-csource.c
new file mode 100644
index 000000000000..d692faea15b9
--- /dev/null
+++ b/devel/directfb/files/patch-tools-directfb-csource.c
@@ -0,0 +1,19 @@
+--- tools/directfb-csource.c.orig 2011-05-05 20:00:29.000000000 +0200
++++ tools/directfb-csource.c 2012-04-29 06:09:30.000000000 +0200
+@@ -41,6 +41,7 @@
+ #include <sys/stat.h>
+
+ #include <png.h>
++#include <pngpriv.h>
+
+ #include <directfb.h>
+
+@@ -338,7 +339,7 @@
+ if (!png_ptr)
+ goto cleanup;
+
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf(png_ptr))) {
+ if (desc->preallocated[0].data) {
+ free (desc->preallocated[0].data);
+ desc->preallocated[0].data = NULL;
diff --git a/devel/directfb/files/patch-tools-mkdfiff.c b/devel/directfb/files/patch-tools-mkdfiff.c
new file mode 100644
index 000000000000..1b41d23ae728
--- /dev/null
+++ b/devel/directfb/files/patch-tools-mkdfiff.c
@@ -0,0 +1,11 @@
+--- tools/mkdfiff.c.orig 2010-10-31 09:49:49.000000000 +0100
++++ tools/mkdfiff.c 2012-04-30 06:43:17.000000000 +0200
+@@ -97,7 +97,7 @@
+ if (!png_ptr)
+ goto cleanup;
+
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf(png_ptr))) {
+ if (desc->preallocated[0].data) {
+ free (desc->preallocated[0].data);
+ desc->preallocated[0].data = NULL;
diff --git a/devel/directfb/files/patch-tools-mkdgifft.cpp b/devel/directfb/files/patch-tools-mkdgifft.cpp
new file mode 100644
index 000000000000..4ac8f145d6c1
--- /dev/null
+++ b/devel/directfb/files/patch-tools-mkdgifft.cpp
@@ -0,0 +1,11 @@
+--- tools/mkdgifft.cpp.orig 2011-05-05 20:00:29.000000000 +0200
++++ tools/mkdgifft.cpp 2012-05-01 08:58:04.000000000 +0200
+@@ -595,7 +595,7 @@
+ if (!png_ptr)
+ goto cleanup;
+
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf(png_ptr))) {
+ if (desc->preallocated[0].data) {
+ free (desc->preallocated[0].data);
+ desc->preallocated[0].data = NULL;