Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/mk/endian.mk,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/mk/endian.mk,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- pkgsrc/mk/endian.mk 2005/04/30 03:01:06 1.4 +++ pkgsrc/mk/endian.mk 2007/03/08 23:11:20 1.5 @@ -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 "; \ + ${ECHO} "\#endif"; \ + ${ECHO} "\#include <${_ENDIAN_H}>"; \ ${ECHO} "\#ifndef BYTE_ORDER"; \ ${ECHO} "\#ifdef _BIG_ENDIAN"; \ ${ECHO} "\#define BYTE_ORDER 4321"; \