changeset 59044:98d4ea3e6432

8243997: Linux build failed after JDK-8242244 Reviewed-by: ihse
author glaubitz
date Tue, 28 Apr 2020 18:23:12 +0200
parents c9ada5ff310f
children 666dd77c8371
files src/hotspot/os/linux/os_linux.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os/linux/os_linux.cpp	Tue Apr 28 12:20:15 2020 -0400
+++ b/src/hotspot/os/linux/os_linux.cpp	Tue Apr 28 18:23:12 2020 +0200
@@ -110,6 +110,7 @@
 # include <stdint.h>
 # include <inttypes.h>
 # include <sys/ioctl.h>
+# include <linux/elf-em.h>
 
 #ifndef _GNU_SOURCE
   #define _GNU_SOURCE
@@ -1845,6 +1846,9 @@
     char*         name;         // String representation
   } arch_t;
 
+#ifndef EM_AARCH64
+  #define EM_AARCH64    183               /* ARM AARCH64 */
+#endif
 #ifndef EM_RISCV
   #define EM_RISCV      243               /* RISC-V */
 #endif