[PATCH] u_int32_t causes cross-compile problems
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:48:21 +0000 (18:48 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:48:21 +0000 (18:48 -0800)
commitc92a441acc468cf277379e64f4e933ea6c54e6ba
tree241ee5cd72860611c4a5f11cb26c476717707e19
parentccd3fed5b2bddf20be5fcd2d4bffd79df08db411
[PATCH] u_int32_t causes cross-compile problems

From: Pratik Solanki <pratik.solanki@timesys.com>

I came across this C standards issue while cross-compiling the Linux kernel
with gcc on Solaris.  The file gen_crc32table.c uses the non-standard type
u_int32_t.  It's possible that the host machine's sys/types.h does not
define u_int32_t.  The attached patch replaces u_int32_t with the POSIX
standard uint32_t and includes POSIX inttypes.h instead of sys/types.h.
lib/gen_crc32table.c