diff options
Diffstat (limited to 'gnu/usr.bin/ld/vax/md.h')
-rw-r--r-- | gnu/usr.bin/ld/vax/md.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/vax/md.h b/gnu/usr.bin/ld/vax/md.h index a55783a64f5..60db24e5562 100644 --- a/gnu/usr.bin/ld/vax/md.h +++ b/gnu/usr.bin/ld/vax/md.h @@ -1,4 +1,4 @@ -/* $OpenBSD: md.h,v 1.5 1998/05/16 07:44:26 niklas Exp $ */ +/* $OpenBSD: md.h,v 1.6 2000/02/01 21:01:43 espie Exp $ */ /* $NetBSD: md.h,v 1.1 1995/10/19 13:10:20 ragge Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -32,10 +32,14 @@ */ -#if defined(CROSS_LINKER) && defined(XHOST) && XHOST==sparc +#if defined(CROSS_LINKER) +#include <sys/endian.h> +#if BYTE_ORDER != LITTLE_ENDIAN #define NEED_SWAP #endif +#endif + /* Remove definitions from the host exec.h */ #undef __LDPGSZ #ifdef relocation_info |