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