aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/sys/stat.h
diff options
context:
space:
mode:
authorRaghu Gandham <raghu.gandham@imgtec.com>2015-01-15 11:12:22 -0800
committerRaghu Gandham <raghu.gandham@imgtec.com>2015-01-28 16:12:17 -0800
commit86d2feef9f4df517dd5755b39b993bec0c3e1ea5 (patch)
treeee7cfa061a58041498641c82047d2d5c89fd1cd0 /libc/include/sys/stat.h
parent3780aba6352affc7d2dcdad0737cb4254448fcae (diff)
downloadandroid_bionic-86d2feef9f4df517dd5755b39b993bec0c3e1ea5.tar.gz
android_bionic-86d2feef9f4df517dd5755b39b993bec0c3e1ea5.tar.bz2
android_bionic-86d2feef9f4df517dd5755b39b993bec0c3e1ea5.zip
Modify MIPS64 stat structure to match a generic one in AOSP.
The kernel version of the stat structure is used during the syscalls. After the syscall, the kernel stat structure is converted to match the generic one. Eventually we would like the generic stat structure and related syscalls be added to MIPS64 kernel, removing the thunks added to AOSP. Change-Id: I7764e80278c1cc8254754c3531ec2dda7544a8ec
Diffstat (limited to 'libc/include/sys/stat.h')
-rw-r--r--libc/include/sys/stat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h
index 7017865bd..eb9bf2e84 100644
--- a/libc/include/sys/stat.h
+++ b/libc/include/sys/stat.h
@@ -36,7 +36,7 @@
__BEGIN_DECLS
-#if defined(__aarch64__)
+#if defined(__aarch64__) || (defined(__mips__) && defined(__LP64__))
#define __STAT64_BODY \
dev_t st_dev; \
ino_t st_ino; \
@@ -56,7 +56,7 @@ __BEGIN_DECLS
unsigned int __unused4; \
unsigned int __unused5; \
-#elif defined(__mips__) /* and mips64 */
+#elif defined(__mips__) && !defined(__LP64__)
#define __STAT64_BODY \
unsigned int st_dev; \
unsigned int __pad0[3]; \