Skip to contentSkip to conversation

[6483] target-ppc: Fix struct target_stat64 for 32-bit host

Qemu-devel Aurelien Jarno 1 participant 1 message Jan 30, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6483

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6483
Author:   aurel32
Date:     2009-01-30 19:48:32 +0000 (Fri, 30 Jan 2009)

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

Modified Paths:
--------------
trunk/linux-user/syscall_defs.h

Modified: trunk/linux-user/syscall_defs.h
===================================================================

linux-user/syscall_defs.h +3 -2
@@ -1141,7 +1141,7 @@
 #endif
 };
 
-struct target_stat64 {
+struct __attribute__((__packed__)) target_stat64 {
 	unsigned long long st_dev;
         unsigned long long st_ino;
 	unsigned int st_mode;
@@ -1149,10 +1149,11 @@
 	unsigned int st_uid;
 	unsigned int st_gid;
 	unsigned long long st_rdev;
-	unsigned short pad0;
+	unsigned long long __pad0;
 	long long      st_size;
 	int	       st_blksize;
 	long long      st_blocks;	/* Number 512-byte blocks allocated. */
+	unsigned int   __pad1;
 	int	       target_st_atime;
         unsigned int   target_st_atime_nsec;
 	int	       target_st_mtime;