summaryrefslogtreecommitdiff
path: root/media-gfx/scangearmp/files/fixcompile.patch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-01-05 22:14:22 +0200
committerBlackNoxis <steven.darklight@gmail.com>2015-01-05 22:14:22 +0200
commitc8dd883920aeb5d16c2c52f4849ad19871d101d8 (patch)
tree5038441af6a00d250f3be162370580fb0229c146 /media-gfx/scangearmp/files/fixcompile.patch
parent2dd08eb427cc8d24f33376b037d7ffa4e86a0c30 (diff)
Added scangearmp ebuild
Diffstat (limited to 'media-gfx/scangearmp/files/fixcompile.patch')
-rw-r--r--media-gfx/scangearmp/files/fixcompile.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/media-gfx/scangearmp/files/fixcompile.patch b/media-gfx/scangearmp/files/fixcompile.patch
new file mode 100644
index 00000000..d119d58d
--- /dev/null
+++ b/media-gfx/scangearmp/files/fixcompile.patch
@@ -0,0 +1,12 @@
+diff -rpu a/scanfile.c b/scanfile.c
+--- a/scanfile.c 2012-07-11 12:13:03.912093273 +0800
++++ b/scanfile.c 2012-07-11 12:13:50.831095404 +0800
+@@ -386,7 +386,7 @@ EXIT:
+
+ void write_data_for_png( png_structp png_ptr, png_bytep data, png_size_t length )
+ {
+- FileControlWriteFile( *( (int *)png_ptr->io_ptr ), (CNMSLPSTR)data, length );
++ FileControlWriteFile( png_get_io_ptr(png_ptr) , (CNMSLPSTR)data, length );
+
+ return;
+ }