27 lines
871 B
Diff
Executable File
27 lines
871 B
Diff
Executable File
From: zhangyipeng <zhangyipeng7@huawei.com>
|
|
Date: Thu, 4 Mar 2021 09:38:42 +0800
|
|
|
|
---
|
|
jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c b/jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c
|
|
index 9b3ff8194..bb9be2ccb 100644
|
|
--- a/jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c
|
|
+++ b/jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c
|
|
@@ -63,6 +63,11 @@
|
|
#include "sun_nio_ch_FileDispatcherImpl.h"
|
|
#include "java_lang_Long.h"
|
|
|
|
+#if defined(aarch64)
|
|
+ __asm__(".symver fcntl64,fcntl@GLIBC_2.17");
|
|
+#elif defined(amd64)
|
|
+ __asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
|
|
+#endif
|
|
static int preCloseFD = -1; /* File descriptor to which we dup other fd's
|
|
before closing them for real */
|
|
|
|
--
|
|
2.19.0
|
|
|