08c3a6
commit f9c3e57ac25511db78f3d51a38f6a715be220479
08c3a6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
08c3a6
Date:   Tue May 31 12:22:13 2022 -0300
08c3a6
08c3a6
    posix: Use 64 bit stat for fpathconf (_PC_ASYNC_IO) (BZ# 29208)
08c3a6
    
08c3a6
    This is a missing spot initially from 52a5fe70a2c77935.
08c3a6
    
08c3a6
    Checked on i686-linux-gnu.
08c3a6
    
08c3a6
    (cherry picked from commit 6e7137f28c9d743d66b5a1cb8fa0d1717b96f853)
08c3a6
08c3a6
diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
08c3a6
index ec0e780466756e00..e673f2016136679e 100644
08c3a6
--- a/sysdeps/posix/fpathconf.c
08c3a6
+++ b/sysdeps/posix/fpathconf.c
08c3a6
@@ -131,9 +131,9 @@ __fpathconf (int fd, int name)
08c3a6
 #ifdef	_POSIX_ASYNC_IO
08c3a6
       {
08c3a6
 	/* AIO is only allowed on regular files and block devices.  */
08c3a6
-	struct stat64 st;
08c3a6
+	struct __stat64_t64 st;
08c3a6
 
08c3a6
-	if (__fstat64 (fd, &st) < 0
08c3a6
+	if (__fstat64_time64 (fd, &st) < 0
08c3a6
 	    || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode)))
08c3a6
 	  return -1;
08c3a6
 	else