]> git.webhop.me Git - lcd4linux.git/commitdiff
Fix compilation with kernel 2.6.22 by Guillaume LECERF
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 27 Jul 2007 10:10:41 +0000 (10:10 +0000)
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Fri, 27 Jul 2007 10:10:41 +0000 (10:10 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@833 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

udelay.c

index ac929872eb7c64342c1c86fb0bbd002a18591e4a..f45ef265cc4e9ec52f010b699694a2fb37e8cae4 100644 (file)
--- a/udelay.c
+++ b/udelay.c
 #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