From d534a96e0238c8cfb9d857d6a91ea5c48a0b50d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martti=20Rannanj=C3=A4rvi?= Date: Fri, 27 Oct 2017 11:08:36 +0300 Subject: [PATCH] lib/compat.h: Undefine WORDS_BIGENDIAN when it's defined as 0 --- src/lib/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/compat.h b/src/lib/compat.h index 203d4f2cda..af6c914dd8 100644 --- a/src/lib/compat.h +++ b/src/lib/compat.h @@ -71,6 +71,11 @@ typedef unsigned long uint_fast32_t; typedef int socklen_t; #endif +/* WORDS_BIGENDIAN needs to be undefined if not enabled */ +#if defined(WORDS_BIGENDIAN) && WORDS_BIGENDIAN == 0 +# undef WORDS_BIGENDIAN +#endif + #ifdef HAVE_SYS_SYSMACROS_H # include # ifdef HAVE_SYS_MKDEV_H -- 2.47.3