From a16f84b4ee4daec0ad1f5c30db5d78a8adef9813 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 7 Feb 2023 08:57:04 +0100 Subject: [PATCH] Fix C99 compatibility issue (#2152432) Related to: --- java-1.8.0-openjdk-c99.patch | 11 +++++++++++ java-1.8.0-openjdk.spec | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 java-1.8.0-openjdk-c99.patch diff --git a/java-1.8.0-openjdk-c99.patch b/java-1.8.0-openjdk-c99.patch new file mode 100644 index 0000000..64d6830 --- /dev/null +++ b/java-1.8.0-openjdk-c99.patch @@ -0,0 +1,11 @@ +diff -up java-1.8.0-openjdk-1.8.0.352.b08-1.fc38.x86_64/openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c.c99 java-1.8.0-openjdk-1.8.0.352.b08-1.fc38.x86_64/openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c +--- java-1.8.0-openjdk-1.8.0.352.b08-1.fc38.x86_64/openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c.c99 2022-12-11 22:23:17.729952935 +0100 ++++ java-1.8.0-openjdk-1.8.0.352.b08-1.fc38.x86_64/openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c 2022-12-11 22:23:44.801668107 +0100 +@@ -29,6 +29,7 @@ + #include "jlong.h" + + #include ++#include + #include + #include + #include diff --git a/java-1.8.0-openjdk.spec b/java-1.8.0-openjdk.spec index 0565407..b02e776 100644 --- a/java-1.8.0-openjdk.spec +++ b/java-1.8.0-openjdk.spec @@ -363,7 +363,7 @@ %global updatever %(VERSION=%{whole_update}; echo ${VERSION##*u}) # eg jdk8u60-b27 -> b27 %global buildver %(VERSION=%{version_tag}; echo ${VERSION##*-}) -%global rpmrelease 1 +%global rpmrelease 2 # Define milestone (EA for pre-releases, GA ("fcs") for releases) # Release will be (where N is usually a number starting at 1): # - 0.N%%{?extraver}%%{?dist} for EA releases, @@ -1542,6 +1542,9 @@ Patch111: jdk8218811-perfMemory_linux.patch # JDK-8281098, PR3836: Extra compiler flags not passed to adlc build Patch112: jdk8281098-pr3836-pass_compiler_flags_to_adlc.patch +# Implicit declaration of free. +Patch113: java-1.8.0-openjdk-c99.patch + ############################################# # # Arch-specific upstreamable patches @@ -2037,6 +2040,7 @@ sh %{SOURCE12} %patch574 %patch111 %patch112 +%patch113 -p1 %patch581 %patch582 @@ -2876,6 +2880,9 @@ cjc.mainProgram(args) %endif %changelog +* Tue Feb 07 2023 Florian Weimer - 1:1.8.0.362.b09-2 +- Fix C99 compatibility issue (#2152432) + * Wed Jan 25 2023 Andrew Hughes - 1:1.8.0.362.b09-1 - Update to shenandoah-jdk8u362-b09 (GA) - Update release notes for shenandoah-8u362-b09.