summarylogtreecommitdiffstats
path: root/gif_main.patch
diff options
context:
space:
mode:
authorStefan Husmann2015-10-11 07:58:08 +0200
committerStefan Husmann2015-10-11 07:58:08 +0200
commite05fbf719ac21865a4f8f9210bf5fc0ae0053ce2 (patch)
treecc12c5e017b06bfb2bc092373310c613d5aadbca /gif_main.patch
parent90865477011e0a254bc72883f843cb4656809b9a (diff)
downloadaur-e05fbf719ac21865a4f8f9210bf5fc0ae0053ce2.tar.gz
add some patches, use make install
Diffstat (limited to 'gif_main.patch')
-rw-r--r--gif_main.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/gif_main.patch b/gif_main.patch
new file mode 100644
index 00000000000..63b27c4e54f
--- /dev/null
+++ b/gif_main.patch
@@ -0,0 +1,44 @@
+diff -Naur meh/src/gif.c meh.new/src/gif.c
+--- meh/src/gif.c 2015-09-27 21:35:45.745053456 +0200
++++ meh.new/src/gif.c 2015-10-11 00:35:49.251559414 +0200
+@@ -1,4 +1,3 @@
+-
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -97,14 +96,14 @@
+ void gif_close(struct image *img){
+ struct gif_t *g = (struct gif_t *)img;
+ #if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)
+- int ret;
++ int ret, ErrorCode;
+ #endif
+
+ #if defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)
+- DGifCloseFile(g->gif,&ret);
++ ret = DGifCloseFile(g->gif, &ErrorCode);
+ if(ret != GIF_OK) {
+ #if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
+- fprintf(stderr, "GIFLIB: %s\n", GifErrorString(ret));
++ fprintf(stderr, "GIFLIB: %s\n", GifErrorString(ErrorCode));
+ #elif defined(GIFLIB_MAJOR) && defined(GIFLIB_MINOR) && ((GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2) || GIFLIB_MAJOR > 4)
+ fprintf(stderr, "GIFLIB: %s\n", GifErrorString());
+ #else
+@@ -123,4 +122,3 @@
+ gif_read,
+ gif_close
+ };
+-
+diff -Naur meh/src/main.c meh.new/src/main.c
+--- meh/src/main.c 2015-09-27 21:35:45.745053456 +0200
++++ meh.new/src/main.c 2015-10-11 00:33:43.315710489 +0200
+@@ -1,4 +1,3 @@
+-
+ #define _GNU_SOURCE
+ #include <unistd.h>
+
+@@ -329,4 +328,3 @@
+ return 0;
+ }
+
+-