diff options
author | antoine <antoine@FreeBSD.org> | 2014-12-27 00:58:50 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-12-27 00:58:50 +0800 |
commit | 2fa739422fd7fe4222782a8ead2f41932d8d054b (patch) | |
tree | 59dcfca0effa14a33d229c6c7a5e5907deaaedfb /graphics | |
parent | 3e25bdc22996fc5865960490783e3ca37b6cb07f (diff) | |
download | freebsd-ports-gnome-2fa739422fd7fe4222782a8ead2f41932d8d054b.tar.gz freebsd-ports-gnome-2fa739422fd7fe4222782a8ead2f41932d8d054b.tar.zst freebsd-ports-gnome-2fa739422fd7fe4222782a8ead2f41932d8d054b.zip |
Allow building with either giflib 4.2 or 5.0
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/metapixel/files/patch-rwimg_rwgif.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/metapixel/files/patch-rwimg_rwgif.c b/graphics/metapixel/files/patch-rwimg_rwgif.c new file mode 100644 index 000000000000..ae50bfbfa403 --- /dev/null +++ b/graphics/metapixel/files/patch-rwimg_rwgif.c @@ -0,0 +1,14 @@ +--- rwimg/rwgif.c.orig 2006-12-10 17:59:54 UTC ++++ rwimg/rwgif.c +@@ -54,7 +54,11 @@ open_gif_file (const char *filename, int + + assert(data != 0); + ++#if GIFLIB_MAJOR >= 5 ++ data->file = DGifOpenFileName(filename, NULL); ++#else + data->file = DGifOpenFileName(filename); ++#endif + + assert(data->file !=0); + |