From 15fdc289ce222a608352cd35ff7a6cf799b88002 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 23 May 2015 00:53:26 +0000 Subject: define BYTEORDER so the endian tests will work ok deraadt@ miod@ --- lib/libexpat/expat_config.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/libexpat') diff --git a/lib/libexpat/expat_config.h b/lib/libexpat/expat_config.h index 810c42fee84..f10244538a3 100644 --- a/lib/libexpat/expat_config.h +++ b/lib/libexpat/expat_config.h @@ -1,4 +1,4 @@ -/* $OpenBSD: expat_config.h,v 1.1 2004/09/22 21:36:54 espie Exp $ */ +/* $OpenBSD: expat_config.h,v 1.2 2015/05/23 00:53:25 jsg Exp $ */ /* quick and dirty conf for OpenBSD */ @@ -6,3 +6,12 @@ #define XML_CONTEXT_BYTES 1024 #define XML_DTD 1 #define XML_NS 1 + +#include +#if BYTE_ORDER == LITTLE_ENDIAN +#define BYTEORDER 1234 +#elif BYTE_ORDER == BIG_ENDIAN +#define BYTEORDER 4321 +#else +#error "unknown byte order" +#endif -- cgit v1.2.3