diff options
author | 2001-07-26 03:55:54 +0000 | |
---|---|---|
committer | 2001-07-26 03:55:54 +0000 | |
commit | 5ebf39c8b80c42fe2c9d46dc40ec57663087d6a3 (patch) | |
tree | 46f52e26785d4b1d37d0f2f3bd86d31e7079298d | |
parent | change vop_symlink and vop_mknod to return vpp (the created node) (diff) | |
download | wireguard-openbsd-5ebf39c8b80c42fe2c9d46dc40ec57663087d6a3.tar.xz wireguard-openbsd-5ebf39c8b80c42fe2c9d46dc40ec57663087d6a3.zip |
make it compile on `other' endian machines
-rw-r--r-- | sys/dev/ic/dptreg.h | 7 |
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)) |