• Andrew Morton's avatar
    [PATCH] u_int32_t causes cross-compile problems · c92a441a
    Andrew Morton authored
    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.
    c92a441a
gen_crc32table.c 1.78 KB