From c38f58eb4577152272af9ec40746c3fbf3112368 Mon Sep 17 00:00:00 2001 From: naddy Date: Thu, 15 Nov 2018 22:19:09 +0000 Subject: [PATCH] check for a platform's endianness the modern way by including and comparing BYTE_ORDER --- .../libreoffice/patches/patch-include_osl_endian_h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/editors/libreoffice/patches/patch-include_osl_endian_h b/editors/libreoffice/patches/patch-include_osl_endian_h index 1790d7bc808..3f15e36fc19 100644 --- a/editors/libreoffice/patches/patch-include_osl_endian_h +++ b/editors/libreoffice/patches/patch-include_osl_endian_h @@ -1,17 +1,16 @@ -$OpenBSD: patch-include_osl_endian_h,v 1.2 2018/02/05 17:15:05 robert Exp $ +$OpenBSD: patch-include_osl_endian_h,v 1.3 2018/11/15 22:19:09 naddy Exp $ Index: include/osl/endian.h --- include/osl/endian.h.orig +++ include/osl/endian.h -@@ -56,6 +56,14 @@ extern "C" { +@@ -56,6 +56,13 @@ extern "C" { # elif defined _BIG_ENDIAN # define OSL_BIGENDIAN # endif +#elif defined OPENBSD -+# include -+# include -+# if defined _LITTLE_ENDIAN ++# include ++# if BYTE_ORDER == LITTLE_ENDIAN +# define OSL_LITENDIAN -+# elif defined _BIG_ENDIAN ++# elif BYTE_ORDER == BIG_ENDIAN +# define OSL_BIGENDIAN +# endif #elif defined AIX