summaryrefslogtreecommitdiff
path: root/network/driftnet/driftnet.patch
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-04 23:15:22 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commitbf4c85e1457c946b322d73077b4b7a7845678af8 (patch)
tree48bd0455cb31ee420e6938c494c8cfd1ad74761c /network/driftnet/driftnet.patch
parent37d75946ea291b12c8d579f3cbee6c1113da968b (diff)
downloadslackbuilds-bf4c85e1457c946b322d73077b4b7a7845678af8.tar.gz
network/driftnet: Fix build with giflib 5.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/driftnet/driftnet.patch')
-rw-r--r--network/driftnet/driftnet.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/network/driftnet/driftnet.patch b/network/driftnet/driftnet.patch
new file mode 100644
index 0000000000..166c75bc2f
--- /dev/null
+++ b/network/driftnet/driftnet.patch
@@ -0,0 +1,29 @@
+--- driftnet-0.1.6_p20090401/gif.c.old 2016-01-04 23:08:50.734142148 +0700
++++ driftnet-0.1.6_p20090401/gif.c 2016-01-04 23:11:58.759931300 +0700
+@@ -20,7 +20,7 @@
+ */
+ int gif_load_hdr(img I) {
+ GifFileType *g;
+- g = I->us = DGifOpenFileHandle(fileno(I->fp));
++ g = I->us = DGifOpenFileHandle(fileno(I->fp), NULL);
+ if (!I->us) {
+ I->err = IE_HDRFORMAT;
+ return 0;
+@@ -36,7 +36,7 @@
+ * Abort loading a GIF file after the header is done.
+ */
+ int gif_abort_load(img I) {
+- DGifCloseFile((GifFileType*)I->us);
++ DGifCloseFile((GifFileType*)I->us, NULL);
+ return 1;
+ }
+
+@@ -114,7 +114,7 @@
+ ret = 1;
+ fail:
+
+- DGifCloseFile(g);
++ DGifCloseFile(g, NULL);
+
+ return ret;
+ }