changeset 1016:10e435a91df3

Fix the sparc build of strace.
author Rob Landley <rob@landley.net>
date Sun, 28 Mar 2010 13:44:20 -0500
parents cf7d68a74efa
children 58d61ccd3f3b
files sources/patches/linux-fixsparc.patch
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/linux-fixsparc.patch	Sun Mar 28 13:44:20 2010 -0500
@@ -0,0 +1,17 @@
+The strace build can't find definitions of uid16_t and gid16_t becuase they're
+both behind #ifdef KERNEL and get cleaned out by the header export.  Just use
+the actual types.
+
+--- a/arch/sparc/include/asm/stat.h
++++ b/arch/sparc/include/asm/stat.h
+@@ -53,8 +53,8 @@ struct stat {
+ 	ino_t		st_ino;
+ 	mode_t		st_mode;
+ 	short		st_nlink;
+-	uid16_t		st_uid;
+-	gid16_t		st_gid;
++	unsigned short	st_uid;
++	unsigned short	st_gid;
+ 	unsigned short	st_rdev;
+ 	off_t		st_size;
+ 	time_t		st_atime;