[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] 0.1.6 fstat64 fix
From: |
Rusty Russell |
Subject: |
[Qemu-devel] [PATCH] 0.1.6 fstat64 fix |
Date: |
Fri, 11 Apr 2003 16:19:55 +1000 |
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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] 0.1.6 fstat64 fix,
Rusty Russell <=