Fix stat64 on PPC
PATCH 1/1 Fix stat64 on PPC
Somehow, post 0.9.1, the stat64 structure on PPC got broken. The attached patch fixes it.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
syscall_defs.h +13 -12
@@ -1131,18 +1131,19 @@unsigned int st_uid;unsigned int st_gid;unsigned long long st_rdev; -unsigned short pad0; -long long st_size; -int st_blksize; -long long st_blocks;/* Number 512-byte blocks allocated. */ -int target_st_atime; -unsigned int target_st_atime_nsec; -int target_st_mtime; -unsigned int target_st_mtime_nsec; -int target_st_ctime; -unsigned int target_st_ctime_nsec; -unsigned int __unused4; - unsigned int __unused5; +long long pad0; +long long st_size; +target_ulong st_blksize; +target_ulong pad1; +long long st_blocks;/* Number 512-byte blocks allocated. */ +target_ulong target_st_atime; +target_ulong target_st_atime_nsec; +target_ulong target_st_mtime; +target_ulong target_st_mtime_nsec; +target_ulong target_st_ctime; +target_ulong target_st_ctime_nsec; +target_ulong __unused4; + target_ulong __unused5; };#elif defined(TARGET_M68K)