summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2006-06-21 18:29:23 +0000
committerJason Wright <jason@cvs.openbsd.org>2006-06-21 18:29:23 +0000
commit1d20ef44979a162a25e2b5ba45f22d3b474913fc (patch)
treea483f699f0e1c74c4df2b271ba20b41ab2fb30dc /sys/dev/sbus
parenta5f528e25695e2b50b4eb0e2f221c4d7b5f4456f (diff)
use __sparc__ and __sparc64__ instead of SUN4|SUN4C|SUN4M vs SUN4U to figure
out which includes to use.
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/sbusvar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sbus/sbusvar.h b/sys/dev/sbus/sbusvar.h
index ae5061ea590..95625ad7f6e 100644
--- a/sys/dev/sbus/sbusvar.h
+++ b/sys/dev/sbus/sbusvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbusvar.h,v 1.10 2006/06/02 20:00:56 miod Exp $ */
+/* $OpenBSD: sbusvar.h,v 1.11 2006/06/21 18:29:22 jason Exp $ */
/* $NetBSD: sbusvar.h,v 1.11 2000/11/01 06:18:45 eeh Exp $ */
/*-
@@ -136,10 +136,10 @@ struct sbus_softc {
#define SBUS_BURST_64 0x40
/* We use #defined(SUN4*) here while the ports are in flux */
-#if defined(SUN4) || defined(SUN4C) || defined(SUN4M)
+#if defined(__sparc__) && !defined(__sparc64__)
#include <sparc/dev/sbusvar.h>
#define INTLEV(x) (x)
-#elif defined(SUN4U)
+#elif defined(__sparc64__)
#include <sparc64/dev/sbusvar.h>
#include <sparc64/dev/iommureg.h>
#endif