mips
authorOpenJDK Team <openjdk-17@packages.debian.org>
Wed, 20 Jul 2022 16:04:41 +0000 (17:04 +0100)
committerMatthias Klose <doko@ubuntu.com>
Wed, 20 Jul 2022 16:04:41 +0000 (17:04 +0100)
# 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 ad36e6a19b4716724b5366a9fd1b55ae4a12a5b5..901061a7e48aa58e49b44c36888f7e5fa21990f0 100644 (file)
@@ -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)