Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: crystalhd: add missing fixes for userspace lib build

I somehow managed to not actually include these two fixes in the submission
that was committed to the staging tree. libcrystalhd should eventually be
built against the kernel-provided header, and needs the stdint.h include. The
VOID bit is to keep things in sync with the Mac OS X driver and library that
Scott Davilla is also working on.

Signed-off-by: Scott Davilla <davilla@4pi.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


authored by

Jarod Wilson and committed by
Greg Kroah-Hartman
88d43000 8a8e2975

+6
+6
drivers/staging/crystalhd/bc_dts_types.h
··· 25 25 #ifndef _BC_DTS_TYPES_H_ 26 26 #define _BC_DTS_TYPES_H_ 27 27 28 + #ifdef __LINUX_USER__ // Don't include these for KERNEL.. 29 + #include <stdint.h> 30 + #endif 31 + 28 32 #if defined(_WIN64) || defined(_WIN32) 29 33 typedef uint32_t U32; 30 34 typedef int32_t S32; ··· 66 62 typedef uint32_t ULONG; 67 63 typedef int32_t LONG; 68 64 typedef void *HANDLE; 65 + #ifndef VOID 69 66 typedef void VOID; 67 + #endif 70 68 typedef void *LPVOID; 71 69 typedef uint32_t DWORD; 72 70 typedef uint32_t UINT32;