X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fmod%2Ffile2alias.c;h=7c8f064f03bbe7efdb64d397255e4c38e210d685;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=f38c6d7def2a338a2c133f59e8d700285e07b8a3;hpb=5fc42a6ed0ec81088c37caadb45898ae6cd0ad2c;p=linux-2.6.git diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index f38c6d7de..7c8f064f0 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -12,17 +12,22 @@ #include "modpost.h" -/* We use the ELF typedefs, since we can't rely on stdint.h being present. */ - +/* We use the ELF typedefs for kernel_ulong_t but bite the bullet and + * use either stdint.h or inttypes.h for the rest. */ #if KERNEL_ELFCLASS == ELFCLASS32 -typedef Elf32_Addr kernel_ulong_t; +typedef Elf32_Addr kernel_ulong_t; +#else +typedef Elf64_Addr kernel_ulong_t; +#endif +#ifdef __sun__ +#include #else -typedef Elf64_Addr kernel_ulong_t; +#include #endif -typedef Elf32_Word __u32; -typedef Elf32_Half __u16; -typedef unsigned char __u8; +typedef uint32_t __u32; +typedef uint16_t __u16; +typedef unsigned char __u8; /* Big exception to the "don't include kernel headers into userspace, which * even potentially has different endianness and word sizes, since