From 4f9ad6d41e02546e964d6f9d702295eb0fee51c4 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Wed, 10 Aug 2016 11:08:54 +0200 Subject: [PATCH] protos.patch: Missing includes / prototypes --- openjdk8.spec | 2 ++ protos.patch | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 protos.patch diff --git a/openjdk8.spec b/openjdk8.spec index 54bafbd..e522979 100644 --- a/openjdk8.spec +++ b/openjdk8.spec @@ -57,6 +57,7 @@ Patch5: system-libpng.patch Patch6: system-lcms.patch Patch7: system-pcsclite.patch Patch8: x32.patch +Patch9: protos.patch URL: http://openjdk.java.net/ BuildRequires: /usr/bin/jar BuildRequires: alsa-lib-devel @@ -423,6 +424,7 @@ done %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build # Make sure we have /proc mounted - otherwise idlc will fail later. diff --git a/protos.patch b/protos.patch new file mode 100644 index 0000000..251a48a --- /dev/null +++ b/protos.patch @@ -0,0 +1,24 @@ +--- jdk8u-jdk8u92-b31/jdk/src/share/native/sun/misc/URLClassPath.c.orig 2016-07-29 15:33:17.499988085 +0200 ++++ jdk8u-jdk8u92-b31/jdk/src/share/native/sun/misc/URLClassPath.c 2016-07-29 15:35:59.085075633 +0200 +@@ -24,6 +24,7 @@ + */ + + #include ++#include + + #include "jni.h" + #include "jni_util.h" +@@ -36,6 +37,12 @@ + extern char* + getUTF(JNIEnv *env, jstring str, char* localBuf, int bufSize); + ++extern JNIEXPORT jboolean ++VerifyClassname(char *name, jboolean allowArrayClass); ++ ++extern JNIEXPORT jboolean ++VerifyFixClassname(char *name); ++ + + JNIEXPORT jboolean JNICALL + Java_sun_misc_URLClassPath_knownToNotExist0(JNIEnv *env, jclass cls, jobject loader, + -- 2.43.0