diff options
Diffstat (limited to 'sys/arch/sh/include')
-rw-r--r-- | sys/arch/sh/include/endian.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sh/include/endian.h b/sys/arch/sh/include/endian.h index 689b168d2ab..daba001f12b 100644 --- a/sys/arch/sh/include/endian.h +++ b/sys/arch/sh/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.4 2011/03/23 16:54:36 pirofti Exp $ */ +/* $OpenBSD: endian.h,v 1.5 2014/07/12 16:25:09 guenther Exp $ */ /* $NetBSD: endian.h,v 1.4 2000/03/17 00:09:25 mycroft Exp $ */ /* Written by Manuel Bouyer. Public domain */ @@ -27,7 +27,7 @@ rval; \ }) -#define MD_SWAP +#define __HAVE_MD_SWAP #endif /* __GNUC_ */ @@ -36,8 +36,10 @@ #else #define _BYTE_ORDER _BIG_ENDIAN #endif -#include <sys/endian.h> - #define __STRICT_ALIGNMENT +#ifndef __FROM_SYS__ENDIAN +#include <sys/endian.h> +#endif + #endif /* !_SH_ENDIAN_H_ */ |