ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / runtime / openjdk-23 / patches / illumos-port-06.patch
blob193834aef06b8855ea57ede82a7c86052a75483c
1 See http://hg.openjdk.java.net/jdk/jdk/rev/1096ad4dbf62
3 The problem is that we want a guard based on platform, but
4 _GNU_SOURCE is a per-toolchain define for the gcc toolchain.
5 It "fixes" AIX because that's using the xlc toolchain.
7 --- a/src/hotspot/share/runtime/os.cpp Wed Aug 12 16:38:30 2020
8 +++ b/src/hotspot/share/runtime/os.cpp Thu Aug 13 19:44:36 2020
9 @@ -175,7 +175,7 @@
10 // No offset when dealing with UTC
11 time_t UTC_to_local = 0;
12 if (!utc) {
13 -#if (defined(_ALLBSD_SOURCE) || defined(_GNU_SOURCE)) && !defined(AIX)
14 +#if (defined(_ALLBSD_SOURCE) || defined(_BSD_SOURCE)) && !defined(AIX)
15 UTC_to_local = -(time_struct.tm_gmtoff);
16 #elif defined(_WINDOWS)
17 long zone;
18 @@ -186,7 +186,7 @@
19 #endif
21 // tm_gmtoff already includes adjustment for daylight saving
22 -#if !defined(_ALLBSD_SOURCE) && !defined(_GNU_SOURCE)
23 +#if !defined(_ALLBSD_SOURCE) && !defined(_BSD_SOURCE)
24 // If daylight savings time is in effect,
25 // we are 1 hour East of our time zone
26 if (time_struct.tm_isdst > 0) {