view sources/patches/linux-fixsparc.patch @ 1016:10e435a91df3

Fix the sparc build of strace.
author Rob Landley <rob@landley.net>
date Sun, 28 Mar 2010 13:44:20 -0500
parents
children
line wrap: on
line source

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;