summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-26 03:55:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-26 03:55:55 +0000
commitaa743da0ab49a0760a378f0922c915185b1e778b (patch)
treea3f3c657c712ec3d06d5f4ee233a4edcb270acfa /sys
parent9d3aef2f8343f433bc39e01bd86f02e3a4815af3 (diff)
make it compile on `other' endian machines
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/dptreg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/dptreg.h b/sys/dev/ic/dptreg.h
index 3b590f699de..4a9d1d3a6e7 100644
--- a/sys/dev/ic/dptreg.h
+++ b/sys/dev/ic/dptreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dptreg.h,v 1.2 2001/01/25 03:50:50 todd Exp $ */
+/* $OpenBSD: dptreg.h,v 1.3 2001/07/26 03:55:54 mickey Exp $ */
/* $NetBSD: dptreg.h,v 1.4 1999/10/19 20:16:48 ad Exp $ */
/*
@@ -57,6 +57,11 @@
#define RSWAP16(x) bswap16((x))
#endif
+#ifdef __OpenBSD__
+#define bswap16 swap16
+#define bswap32 swap32
+#endif
+
#define dpt_inb(x, o) \
bus_space_read_1((x)->sc_iot, (x)->sc_ioh, (o))