diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2014-12-27 07:37:59 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2014-12-27 07:37:59 +0000 |
commit | 2fde21514776e78513d45198b070f4bc5af24105 (patch) | |
tree | 1ec22205c530d284e503b67caf23a6e842e454fd /java | |
parent | fb1102537ce1fcb9e1862a44fc7f92721b831f7c (diff) | |
download | freebsd-ports-2fde21514776e78513d45198b070f4bc5af24105.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.c | 14 |
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; |