mips
authorOpenJDK Team <openjdk-17@packages.debian.org>
Mon, 22 Apr 2024 10:26:25 +0000 (12:26 +0200)
committerMoritz Muehlenhoff <jmm@debian.org>
Mon, 22 Apr 2024 10:26:25 +0000 (12:26 +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 be578a0bb4b85bdd49ce40590205baabef6e091d..67ca70f188727ada7b217cbeaca44753dcfc2d6c 100644 (file)
@@ -267,7 +267,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)