b6cd8a6
From b9119f9e0b0166c46114f9715a8064582131ab1d Mon Sep 17 00:00:00 2001
b6cd8a6
From: Adam Jackson <ajax@redhat.com>
b6cd8a6
Date: Mon, 3 Dec 2007 14:00:25 -0500
b6cd8a6
Subject: [PATCH] apm_event_t workaround
b6cd8a6
b6cd8a6
---
b6cd8a6
 hw/xfree86/os-support/linux/lnx_apm.c |    3 +++
b6cd8a6
 1 files changed, 3 insertions(+), 0 deletions(-)
b6cd8a6
b6cd8a6
diff --git a/hw/xfree86/os-support/linux/lnx_apm.c b/hw/xfree86/os-support/linux/lnx_apm.c
b6cd8a6
index 16ac80d..6bcae47 100644
b6cd8a6
--- a/hw/xfree86/os-support/linux/lnx_apm.c
b6cd8a6
+++ b/hw/xfree86/os-support/linux/lnx_apm.c
b6cd8a6
@@ -39,6 +39,9 @@ static PMClose lnxAPMOpen(void);
b6cd8a6
 static void lnxCloseAPM(void);
b6cd8a6
 static pointer APMihPtr = NULL;
b6cd8a6
 
b6cd8a6
+/* XXX this is wrong, do not ever commit me upstream */
b6cd8a6
+#define apm_event_t unsigned short
b6cd8a6
+
b6cd8a6
 static struct {
b6cd8a6
     apm_event_t apmLinux;
b6cd8a6
     pmEvent xf86;
b6cd8a6
-- 
b6cd8a6
1.5.2.4
b6cd8a6