mips
authorOpenJDK Team <openjdk-17@packages.debian.org>
Thu, 24 Apr 2025 00:05:43 +0000 (02:05 +0200)
committerMatthias Klose <doko@ubuntu.com>
Thu, 24 Apr 2025 00:05:43 +0000 (02:05 +0200)
# 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

index 7bc14a0da977f63c2cecf1ee87dee18446376011..1570d9ce5ddff82120f36aad53e574ff322d56c6 100644 (file)
@@ -268,7 +268,7 @@ static statx_func* my_statx_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)