diff options
author | rillig <rillig@pkgsrc.org> | 2007-03-08 23:11:20 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-03-08 23:11:20 +0000 |
commit | 197add6321402c380d1f740f592a28d6e3565ce6 (patch) | |
tree | 82dd459ef57d26fb34e9c0dafbd96c3ded9e65e5 /mk/endian.mk | |
parent | dc31efeb7ac7f971924584f0e3e23ffb35e5db6d (diff) | |
download | pkgsrc-197add6321402c380d1f740f592a28d6e3565ce6.tar.gz |
On IRIX, <standards.h> needs to be included before <sys/endian.h>.
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"; \ |