mips
authorOpenJDK Team <openjdk-21@packages.debian.org>
Mon, 9 Sep 2024 13:29:08 +0000 (15:29 +0200)
committerMatthias Klose <doko@ubuntu.com>
Mon, 9 Sep 2024 13:29:08 +0000 (15:29 +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 6d933be4e6e8f4c6befd85eed32f8523ecad69e0..01d8749bc9781591293bb1264b75f56983db665a 100644 (file)
@@ -259,7 +259,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)