From d01d6f1d2c4baeb238a850ccedc8b2ab1a926eb0 Mon Sep 17 00:00:00 2001 Date: Thu, 31 Oct 2024 17:06:06 +0800 Subject: downgrade fcntl64 to fcntl on linux --- src/hotspot/os/linux/os_linux.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp index e59af5504..96b92344f 100644 --- a/src/hotspot/os/linux/os_linux.cpp +++ b/src/hotspot/os/linux/os_linux.cpp @@ -122,6 +122,12 @@ #include #endif +#if defined(AARCH64) + __asm__(".symver fcntl64,fcntl@GLIBC_2.17"); +#elif defined(AMD64) + __asm__(".symver fcntl64,fcntl@GLIBC_2.2.5"); +#endif + // if RUSAGE_THREAD for getrusage() has not been defined, do it here. The code calling // getrusage() is prepared to handle the associated failure. #ifndef RUSAGE_THREAD -- 2.22.0