The patch here makes the build system not assume that all arm systems are
using netbsd. This was pulled from the Debian patch set.

wt


-- 
Warren Turkal
President, GOLUM, Inc.
http://www.golum.org
$Id: 301_not_all_arm_boxes_run_netbsd.diff 834 2003-12-10 07:13:21Z wt $

This patch by Michel Dänzer and Othmar Pasteka.

--- xc/programs/Xserver/hw/xfree86/drivers/chips/ct_bank.c.orig	2002-10-03 19:06:39.000000000 +0000
+++ xc/programs/Xserver/hw/xfree86/drivers/chips/ct_bank.c	2002-10-03 19:06:51.000000000 +0000
@@ -53,12 +53,15 @@
 /* Driver specific headers */
 #include "ct_driver.h"
 
-#ifdef	__arm32__
-/*#include <machine/sysarch.h>*/
+#if defined(__arm32__) && defined(__NetBSD__)
+#include <machine/sysarch.h>
 #define	arm32_drain_writebuf()	sysarch(1, 0)
-#define ChipsBank(pScreen) CHIPSPTR(xf86Screens[pScreen->myNum])->Bank
+#elif defined(__arm32__)
+#define arm32_drain_writebuf()
 #endif
 
+#define ChipsBank(pScreen) CHIPSPTR(xf86Screens[pScreen->myNum])->Bank
+
 #ifdef DIRECT_REGISTER_ACCESS
 int
 CHIPSSetRead(ScreenPtr pScreen, int bank)

Reply via email to