summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch')
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch b/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
new file mode 100644
index 0000000..8e31461
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
@@ -0,0 +1,43 @@
1From e5bf672f4e10997789f2a447fd95a88703dbd332 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 15:00:55 +0000
4Subject: [PATCH 1003/1012] hotspot: don't rely on old SysV SIGCLD
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9SIGCLD is the old System V name for SIGCHLD, and not
10all c libraries implement it, e.g. musl-libc, which
11leads to the following compilation error:
12
13| hotspot/src/os/linux/vm/jvm_linux.cpp:157:17: error: 'SIGCLD' was not declared in this scope
14| "CLD", SIGCLD, /* Same as SIGCHLD (System V). */
15| ^~~~~~
16
17Just make it conditional, so the code compiles everywhere.
18
19Upstream-Status: Pending
20
21Signed-off-by: André Draszik <andre.draszik@jci.com>
22Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
23---
24 src/os/linux/vm/jvm_linux.cpp | 2 ++
25 1 file changed, 2 insertions(+)
26
27diff --git a/hotspot/src/os/linux/vm/jvm_linux.cpp b/hotspot/src/os/linux/vm/jvm_linux.cpp
28index ba84788a1..c22281f7c 100644
29--- a/hotspot/src/os/linux/vm/jvm_linux.cpp
30+++ b/hotspot/src/os/linux/vm/jvm_linux.cpp
31@@ -154,7 +154,9 @@ struct siglabel siglabels[] = {
32 #ifdef SIGSTKFLT
33 "STKFLT", SIGSTKFLT, /* Stack fault. */
34 #endif
35+#ifdef SIGCLD
36 "CLD", SIGCLD, /* Same as SIGCHLD (System V). */
37+#endif
38 "CHLD", SIGCHLD, /* Child status has changed (POSIX). */
39 "CONT", SIGCONT, /* Continue (POSIX). */
40 "STOP", SIGSTOP, /* Stop, unblockable (POSIX). */
41--
422.24.1
43