aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-12-27 15:37:59 +0800
committerantoine <antoine@FreeBSD.org>2014-12-27 15:37:59 +0800
commita415deb530337518694d1985638878da553c567e (patch)
tree1ec22205c530d284e503b67caf23a6e842e454fd /java
parentc4e2500aa822fc3507abbc1c68229bad1c834199 (diff)
downloadfreebsd-ports-gnome-a415deb530337518694d1985638878da553c567e.tar.gz
freebsd-ports-gnome-a415deb530337518694d1985638878da553c567e.tar.zst
freebsd-ports-gnome-a415deb530337518694d1985638878da553c567e.zip
Allow building with either giflib 4.2 or 5.0
Diffstat (limited to 'java')
-rw-r--r--java/openjdk8/files/patch-jdk_src_share_native_sun_awt_splashscreen_splashscreen__gif.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/java/openjdk8/files/patch-jdk_src_share_native_sun_awt_splashscreen_splashscreen__gif.c b/java/openjdk8/files/patch-jdk_src_share_native_sun_awt_splashscreen_splashscreen__gif.c
new file mode 100644
index 000000000000..2a5a5af4340e
--- /dev/null
+++ b/java/openjdk8/files/patch-jdk_src_share_native_sun_awt_splashscreen_splashscreen__gif.c
@@ -0,0 +1,14 @@
+--- jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c.orig 2014-03-04 02:59:38 UTC
++++ jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c
+@@ -318,7 +318,11 @@ SplashDecodeGif(Splash * splash, GifFile
+ int
+ SplashDecodeGifStream(Splash * splash, SplashStream * stream)
+ {
++#if GIFLIB_MAJOR >= 5
++ GifFileType *gif = DGifOpen((void *) stream, SplashStreamGifInputFunc, NULL);
++#else
+ GifFileType *gif = DGifOpen((void *) stream, SplashStreamGifInputFunc);
++#endif
+
+ if (!gif)
+ return 0;