aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-07-27 10:10:41 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-07-27 10:10:41 +0000
commit51bbebac48030fcc624e090fee24b368b8197f08 (patch)
tree881634655193681c3867312688c2a300587a56e7
parent1c822162c25c02121b89f0b226e38c6b1e7d207b (diff)
downloadlcd4linux-51bbebac48030fcc624e090fee24b368b8197f08.tar.gz
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
-rw-r--r--udelay.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/udelay.c b/udelay.c
index ac92987..f45ef26 100644
--- a/udelay.c
+++ b/udelay.c
@@ -56,8 +56,11 @@
#include <sys/time.h>
#ifdef HAVE_ASM_MSR_H
-#define u32 unsigned int
+typedef u_int32_t u32;
+typedef u_int64_t u64;
+#define __KERNEL__
#include <asm/msr.h>
+#undef __KERNEL__
#endif