1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/openjdk10/arm.patch
Simon Frankenberger 309e323d10 community/openjdk9-11: Move from testing
OpenJDK 9 and 10 may be removed once 11 is built.
2019-06-05 17:27:50 +00:00

29 lines
713 B
Diff

--- old/src/hotspot/os_cpu/linux_arm/os_linux_arm.cpp
+++ new/src/hotspot/os_cpu/linux_arm/os_linux_arm.cpp
@@ -70,7 +70,6 @@
# include <pwd.h>
# include <poll.h>
# include <ucontext.h>
-# include <fpu_control.h>
# include <asm/ptrace.h>
#define SPELL_REG_SP "sp"
@@ -103,6 +102,18 @@
#define ARM_REGS_IN_CONTEXT 31
#else
+
+// Stupid hack as the origin if below doesnt compile with gcc 8.2.0:
+//
+// os_linux_arm.cpp:114:5: error: missing binary operator before token "("
+// #if NGREG == 16
+// ^~~~~
+//
+// The NGREG is 18, so force it to that value.
+#ifdef NGREG
+# undef NGREG
+#endif
+#define NGREG 18
#if NGREG == 16
// These definitions are based on the observation that until