From 8af4916bd8a9c337bbe4e598ea6721ec3c382e6e Mon Sep 17 00:00:00 2001 From: OpenJDK Team Date: Wed, 18 Oct 2023 08:07:04 +0100 Subject: [PATCH] mips # DP: Untested patch suggested to fix #983878 # DP: Untested patch suggested to fix #983878 Gbp-Pq: Name mips.diff --- src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c b/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c index ad36e6a19..901061a7e 100644 --- a/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c +++ b/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c @@ -156,7 +156,7 @@ static fdopendir_func* my_fdopendir_func = NULL; /** * fstatat missing from glibc on Linux. */ -#if defined(__linux__) && (defined(__i386) || defined(__arm__)) +#if defined(__linux__) && (defined(__i386) || defined(__arm__) || (defined(__mips__) && !defined(__mips64))) #define FSTATAT64_SYSCALL_AVAILABLE static int fstatat64_wrapper(int dfd, const char *path, struct stat64 *statbuf, int flag) -- 2.30.2