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
10 // No offset when dealing with UTC
11 time_t UTC_to_local = 0;
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)
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) {