aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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