[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] take2. SH: Fix struct target_stat64 for 64bit host
From: |
takasi-y |
Subject: |
[Qemu-devel] [PATCH] take2. SH: Fix struct target_stat64 for 64bit host |
Date: |
Mon, 27 Oct 2008 00:37:39 +0900 (JST) |
I send fixed one, because I found (perhaps) I should send fixed patch with
signed-off line to be committed to the repository....
This one simply add packed attribute to the struct, as michael pointed out.
Signed-off-by: Takashi YOSHII <address@hidden>
---
linux-user/syscall_defs.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 5a58010..8131905 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -1475,7 +1475,7 @@ struct target_stat {
/* This matches struct stat64 in glibc2.1, hence the absolutely
* insane amounts of padding around dev_t's.
*/
-struct target_stat64 {
+struct __attribute__((__packed__)) target_stat64 {
unsigned long long st_dev;
unsigned char __pad0[4];
--
1.5.4.3