qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] 0.1.6 fstat64 fix
@ 2003-04-11  6:19 Rusty Russell
  0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2003-04-11  6:19 UTC (permalink / raw)
  To: Fabrice Bellard; +Cc: qemu-devel

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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-11  6:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-11  6:19 [Qemu-devel] [PATCH] 0.1.6 fstat64 fix Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).