0cf7b6d
From 32a51abce25df28d579eb73b42f06cc63741f17b Mon Sep 17 00:00:00 2001
0cf7b6d
From: Adam Jackson <ajax@redhat.com>
0cf7b6d
Date: Thu, 8 Jan 2009 10:03:52 -0500
0cf7b6d
Subject: [PATCH] HACK: Work around broken mtrr.h
0cf7b6d
0cf7b6d
---
0cf7b6d
 hw/kdrive/src/kmap.c                    |    1 +
0cf7b6d
 hw/xfree86/os-support/linux/lnx_video.c |    1 +
0cf7b6d
 2 files changed, 2 insertions(+), 0 deletions(-)
0cf7b6d
0cf7b6d
diff --git a/hw/kdrive/src/kmap.c b/hw/kdrive/src/kmap.c
0cf7b6d
index 60e8ae1..537d740 100644
0cf7b6d
--- a/hw/kdrive/src/kmap.c
0cf7b6d
+++ b/hw/kdrive/src/kmap.c
9c43ce8
@@ -27,6 +27,8 @@
0cf7b6d
 #include <unistd.h>
0cf7b6d
 #include <sys/mman.h>
0cf7b6d
 #ifdef HAVE_ASM_MTRR_H
9c43ce8
+typedef unsigned char u8;
0cf7b6d
+typedef unsigned int u32;
0cf7b6d
 #include <asm/mtrr.h>
0cf7b6d
 #endif
0cf7b6d
 
0cf7b6d
diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
0cf7b6d
index 688106a..535c3a0 100644
0cf7b6d
--- a/hw/xfree86/os-support/linux/lnx_video.c
0cf7b6d
+++ b/hw/xfree86/os-support/linux/lnx_video.c
9c43ce8
@@ -44,6 +45,8 @@
0cf7b6d
 #endif
0cf7b6d
 
0cf7b6d
 #ifdef HAS_MTRR_SUPPORT
9c43ce8
+typedef unsigned char u8;
0cf7b6d
+typedef unsigned int u32;
0cf7b6d
 #include <asm/mtrr.h>
0cf7b6d
 #endif
0cf7b6d
 
0cf7b6d
-- 
0cf7b6d
1.6.0.3
0cf7b6d