ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / runtime / openjdk-23 / patches / illumos-port-23.patch
blob57cd7566a63463fc72b6c84521d0d11a25502d1a
1 --- a/src/java.base/share/classes/jdk/internal/util/OperatingSystem.java Wed Mar 29 20:12:02 2023
2 +++ b/src/java.base/share/classes/jdk/internal/util/OperatingSystem.java Thu Mar 30 13:44:42 2023
3 @@ -81,6 +81,10 @@
4 * The AIX Operating system.
5 */
6 AIX,
7 + /**
8 + * Operating systems based on Solaris or illumos.
9 + */
10 + SOLARIS,
13 // The current OperatingSystem
14 @@ -118,6 +122,14 @@
15 return PlatformProps.TARGET_OS_IS_AIX;
18 + /**
19 + * {@return {@code true} if built for Solaris or illumos operating systems}
20 + */
21 + @ForceInline
22 + public static boolean isSolaris() {
23 + return PlatformProps.TARGET_OS_IS_SOLARIS;
24 + }
26 /**
27 * {@return the current operating system}
29 --- a/src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template Wed Mar 29 20:12:02 2023
30 +++ b/src/java.base/share/classes/jdk/internal/util/PlatformProps.java.template Thu Mar 30 13:43:29 2023
31 @@ -39,6 +39,7 @@
32 static final boolean TARGET_OS_IS_MACOS = "@@OPENJDK_TARGET_OS@@" == "macos";
33 static final boolean TARGET_OS_IS_WINDOWS = "@@OPENJDK_TARGET_OS@@" == "windows";
34 static final boolean TARGET_OS_IS_AIX = "@@OPENJDK_TARGET_OS@@" == "aix";
35 + static final boolean TARGET_OS_IS_SOLARIS = "@@OPENJDK_TARGET_OS@@" == "solaris";
37 // The Architecture value for the current architecture
38 static final String CURRENT_ARCH_STRING = "@@OPENJDK_TARGET_CPU@@";