Skip to content

Commit

Permalink
On IRIX, <standards.h> needs to be included before <sys/endian.h>.
Browse files Browse the repository at this point in the history
  • Loading branch information
rillig committed Mar 8, 2007
1 parent dc31efe commit 197add6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mk/endian.mk
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down Expand Up @@ -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"; \
Expand Down

0 comments on commit 197add6

Please sign in to comment.