Skip to contentSkip to conversation

0.1.6 fstat64 fix

PATCH New Rusty Russell 1 participant 1 message Apr 11, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 0.1.6 fstat64 fix

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.

syscall-i386.h +1 -1
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
@@ -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 */