1 --- hotspot/src/share/vm/runtime/os.cpp Sun Jul 31 16:21:00 2022
2 +++ hotspot/src/share/vm/runtime/os.cpp Thu Nov 10 02:02:59 2022
4 const time_t seconds_per_hour = seconds_per_minute * minutes_per_hour;
6 time_t UTC_to_local = 0;
7 -#if defined(_ALLBSD_SOURCE) || defined(_GNU_SOURCE)
8 +#if (defined(_ALLBSD_SOURCE) || defined(_GNU_SOURCE)) && !defined(__sun)
9 UTC_to_local = -(time_struct.tm_gmtoff);
10 #elif defined(_WINDOWS)
15 // tm_gmtoff already includes adjustment for daylight saving
16 -#if !defined(_ALLBSD_SOURCE) && !defined(_GNU_SOURCE)
17 +#if (!defined(_ALLBSD_SOURCE) && !defined(_GNU_SOURCE)) || defined(__sun)
18 // If daylight savings time is in effect,
19 // we are 1 hour East of our time zone
20 if (time_struct.tm_isdst > 0) {