Skip to content

Commit 51bbeba

Browse files
author
michael
committed
Fix compilation with kernel 2.6.22 by Guillaume LECERF
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@833 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
1 parent 1c82216 commit 51bbeba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

udelay.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@
5656
#include <sys/time.h>
5757

5858
#ifdef HAVE_ASM_MSR_H
59-
#define u32 unsigned int
59+
typedef u_int32_t u32;
60+
typedef u_int64_t u64;
61+
#define __KERNEL__
6062
#include <asm/msr.h>
63+
#undef __KERNEL__
6164
#endif
6265

6366

0 commit comments

Comments
 (0)