diff options
Diffstat (limited to 'mk/endian.mk')
-rw-r--r-- | mk/endian.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/endian.mk b/mk/endian.mk index f08b5ac6b04..623272ed6e9 100644 --- a/mk/endian.mk +++ b/mk/endian.mk @@ -1,4 +1,4 @@ -# $NetBSD: endian.mk,v 1.4 2005/04/30 03:01:06 jlam Exp $ +# $NetBSD: endian.mk,v 1.5 2007/03/08 23:11:20 rillig Exp $ # # Determine the endianness of the platform by checking header files. # @@ -30,7 +30,10 @@ _ENDIAN_H= /dev/null . endif MACHINE_ENDIAN!= \ - { ${ECHO} "\#include <${_ENDIAN_H}>"; \ + { ${ECHO} "\#if defined(__sgi)"; \ + ${ECHO} "\# include <standards.h>"; \ + ${ECHO} "\#endif"; \ + ${ECHO} "\#include <${_ENDIAN_H}>"; \ ${ECHO} "\#ifndef BYTE_ORDER"; \ ${ECHO} "\#ifdef _BIG_ENDIAN"; \ ${ECHO} "\#define BYTE_ORDER 4321"; \ |