rebuild geeqie
[oi-userland.git] / components / runtime / openjdk-8 / patches / 0066-no-tm_gmtoff-in-solaris-std-tm.patch
blob565a17d095e71cb74472d967b48970fbf2162e0b
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
3 @@ -148,7 +148,7 @@
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)
11 long zone;
12 @@ -159,7 +159,7 @@
13 #endif
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) {