vim: update to 9.1.0969
[oi-userland.git] / components / runtime / openjdk-11 / patches / illumos-port-6.patch
blobc9d5750e815cfeb388dca5c2f8f4ff664bde32e1
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 @@ -154,7 +154,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)
14 +#if defined(_ALLBSD_SOURCE) || defined(_BSD_SOURCE)
15 UTC_to_local = -(time_struct.tm_gmtoff);
16 #elif defined(_WINDOWS)
17 long zone;
18 @@ -165,7 +165,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) {