mips
authorOpenJDK Team <openjdk-21@packages.debian.org>
Wed, 16 Oct 2024 08:41:47 +0000 (10:41 +0200)
committerMatthias Klose <doko@ubuntu.com>
Wed, 16 Oct 2024 08:41:47 +0000 (10:41 +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 f863d6aca70f4c67bf737b9ef66afb80b53c1a9b..e2966178ca49d552a138b8250456117b75c9d33f 100644 (file)
@@ -260,7 +260,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)