diff options
author | joerg <joerg> | 2013-08-15 16:26:36 +0000 |
---|---|---|
committer | joerg <joerg> | 2013-08-15 16:26:36 +0000 |
commit | b46f69b1e7aff8290fd1a11b87c3446d95ab0d07 (patch) | |
tree | 9bfcd82538109a581a414e13200b4278ea1ef360 /graphics/imlib/patches | |
parent | 6c1287fdc3517c13cde5da10f83fd5ac7ddad125 (diff) | |
download | pkgsrc-b46f69b1e7aff8290fd1a11b87c3446d95ab0d07.tar.gz |
Fix build with newer giflib.
Diffstat (limited to 'graphics/imlib/patches')
-rw-r--r-- | graphics/imlib/patches/patch-ab | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/imlib/patches/patch-ab b/graphics/imlib/patches/patch-ab index 956313aaf42..64b67180485 100644 --- a/graphics/imlib/patches/patch-ab +++ b/graphics/imlib/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.7 2011/01/23 16:16:39 wiz Exp $ +$NetBSD: patch-ab,v 1.8 2013/08/15 16:26:36 joerg Exp $ Middle chunks: Fix build with png-1.5. Others: ??? @@ -86,6 +86,15 @@ Others: ??? { TIFFClose(tif); return NULL; +@@ -443,7 +454,7 @@ _LoadGIF(ImlibData * id, FILE *f, int *w + fd = fileno(f); + /* Apparently rewind(f) isn't sufficient */ + lseek(fd, (long) 0, 0); +- gif = DGifOpenFileHandle(fd); ++ gif = DGifOpenFileHandle(fd, NULL); + + if (!gif) + return NULL; @@ -463,7 +474,7 @@ _LoadGIF(ImlibData * id, FILE *f, int *w } *w = gif->Image.Width; |