Date: Fri, 26 Dec 2014 12:42:29 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r375620 - head/net-mgmt/driftnet/files Message-ID: <201412261242.sBQCgTnc085745@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412261242.sBQCgTnc085745>