From 1c52e6c92631c694fa30b4e0312da31fb093acfd Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 18 Dec 2014 12:38:44 -0800 Subject: [PATCH] Fix struct stat member types for x86-64. Bug: 17062519 Change-Id: I93b1e8b1d4b6918ab7c3a985e2f7da277077375e --- libc/include/sys/stat.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h index e3f41a9d7..5c82a5b24 100644 --- a/libc/include/sys/stat.h +++ b/libc/include/sys/stat.h @@ -78,15 +78,15 @@ __BEGIN_DECLS #elif defined(__x86_64__) #define __STAT64_BODY \ - unsigned long st_dev; \ - unsigned long st_ino; \ + dev_t st_dev; \ + ino_t st_ino; \ unsigned long st_nlink; \ - unsigned int st_mode; \ + mode_t st_mode; \ uid_t st_uid; \ gid_t st_gid; \ unsigned int __pad0; \ - unsigned long st_rdev; \ - long st_size; \ + dev_t st_rdev; \ + off_t st_size; \ long st_blksize; \ long st_blocks; \ struct timespec st_atim; \