perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / runtime / openjdk-24 / patches / illumos-port-06.patch
blobad31fad210a9bd7d71100328c5d10aec4503d2ee
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 @@ -179,7 +179,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 @@ -190,7 +190,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) {