From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193rul-000649-00 for qemu-devel@nongnu.org; Fri, 11 Apr 2003 02:21:31 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193rue-0005xQ-00 for qemu-devel@nongnu.org; Fri, 11 Apr 2003 02:21:25 -0400 Received: from dp.samba.org ([66.70.73.150] helo=lists.samba.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193ruV-0005t3-00 for qemu-devel@nongnu.org; Fri, 11 Apr 2003 02:21:15 -0400 From: Rusty Russell Date: Fri, 11 Apr 2003 16:19:55 +1000 Sender: rusty@rustcorp.com.au Message-Id: <20030411062115.652312C060@lists.samba.org> Subject: [Qemu-devel] [PATCH] 0.1.6 fstat64 fix List-Id: List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , To: Fabrice Bellard Cc: qemu-devel@nongnu.org This was causing dash and sash to segfault. PPC (and probably other archs) align long long to 8 bytes, not 4. Cheers, Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. diff -urpN --exclude TAGS -X /home/rusty/current-dontdiff --minimal qemu-0.1.6/syscall-i386.h qemu-0.1.6-debug/syscall-i386.h --- qemu-0.1.6/syscall-i386.h 2003-04-11 11:01:57.000000000 +1000 +++ qemu-0.1.6-debug/syscall-i386.h 2003-04-11 16:13:59.000000000 +1000 @@ -330,7 +329,7 @@ struct target_stat64 { target_ulong __pad7; /* will be high 32 bits of ctime someday */ unsigned long long st_ino; -}; +} __attribute__((packed)); #define TARGET_SA_NOCLDSTOP 0x00000001 #define TARGET_SA_NOCLDWAIT 0x00000002 /* not supported yet */