svn commit: r375620 - head/net-mgmt/driftnet/files
Antoine Brodin
antoine at FreeBSD.org
Fri Dec 26 12:42:30 UTC 2014
Author: antoine
Date: Fri Dec 26 12:42:28 2014
New Revision: 375620
URL: https://svnweb.freebsd.org/changeset/ports/375620
QAT: https://qat.redports.org/buildarchive/r375620/
Log:
Allow building with either giflib 4.2 or 5.0
Added:
head/net-mgmt/driftnet/files/patch-gif.c (contents, props changed)
Added: head/net-mgmt/driftnet/files/patch-gif.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/driftnet/files/patch-gif.c Fri Dec 26 12:42:28 2014 (r375620)
@@ -0,0 +1,14 @@
+--- gif.c.orig 2002-07-09 19:26:41 UTC
++++ gif.c
+@@ -20,7 +20,11 @@ static const char rcsid[] = "$Id: gif.c,
+ */
+ int gif_load_hdr(img I) {
+ GifFileType *g;
++#if GIFLIB_MAJOR >= 5
++ g = I->us = DGifOpenFileHandle(fileno(I->fp), NULL);
++#else
+ g = I->us = DGifOpenFileHandle(fileno(I->fp));
++#endif
+ if (!I->us) {
+ I->err = IE_HDRFORMAT;
+ return 0;
More information about the svn-ports-head
mailing list