8214078: (fs) SecureDirectoryStream not supported on arm32
authoralanb
Wed, 21 Nov 2018 18:44:11 +0000
changeset 52641 09a3f379b927
parent 52640 3a7d49718852
child 52642 9cfc8b0c45fd
8214078: (fs) SecureDirectoryStream not supported on arm32 Reviewed-by: alanb Contributed-by: nick.gasson@arm.com
src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c
--- a/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c	Wed Nov 21 09:38:27 2018 -0800
+++ b/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c	Wed Nov 21 18:44:11 2018 +0000
@@ -153,10 +153,9 @@
 static fdopendir_func* my_fdopendir_func = NULL;
 
 /**
- * fstatat missing from glibc on Linux. Temporary workaround
- * for x86/x64.
+ * fstatat missing from glibc on Linux.
  */
-#if defined(__linux__) && defined(__i386)
+#if defined(__linux__) && (defined(__i386) || defined(__arm__))
 #define FSTATAT64_SYSCALL_AVAILABLE
 static int fstatat64_wrapper(int dfd, const char *path,
                              struct stat64 *statbuf, int flag)