Commit e1ce5e400a08b62100249d9a4f1cc26414c8675e

Authored by aurel32
1 parent 91bd8ce9

target-ppc: Fix struct target_stat64 for 32-bit host

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6483 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 2 deletions
linux-user/syscall_defs.h
@@ -1141,7 +1141,7 @@ struct target_stat { @@ -1141,7 +1141,7 @@ struct target_stat {
1141 #endif 1141 #endif
1142 }; 1142 };
1143 1143
1144 -struct target_stat64 { 1144 +struct __attribute__((__packed__)) target_stat64 {
1145 unsigned long long st_dev; 1145 unsigned long long st_dev;
1146 unsigned long long st_ino; 1146 unsigned long long st_ino;
1147 unsigned int st_mode; 1147 unsigned int st_mode;
@@ -1149,10 +1149,11 @@ struct target_stat64 { @@ -1149,10 +1149,11 @@ struct target_stat64 {
1149 unsigned int st_uid; 1149 unsigned int st_uid;
1150 unsigned int st_gid; 1150 unsigned int st_gid;
1151 unsigned long long st_rdev; 1151 unsigned long long st_rdev;
1152 - unsigned short pad0; 1152 + unsigned long long __pad0;
1153 long long st_size; 1153 long long st_size;
1154 int st_blksize; 1154 int st_blksize;
1155 long long st_blocks; /* Number 512-byte blocks allocated. */ 1155 long long st_blocks; /* Number 512-byte blocks allocated. */
  1156 + unsigned int __pad1;
1156 int target_st_atime; 1157 int target_st_atime;
1157 unsigned int target_st_atime_nsec; 1158 unsigned int target_st_atime_nsec;
1158 int target_st_mtime; 1159 int target_st_mtime;