From: Martti Rannanjärvi Date: Fri, 27 Oct 2017 08:08:36 +0000 (+0300) Subject: lib/compat.h: Undefine WORDS_BIGENDIAN when it's defined as 0 X-Git-Tag: 2.3.0.rc1~719 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d534a96e0238c8cfb9d857d6a91ea5c48a0b50d9;p=thirdparty%2Fdovecot%2Fcore.git lib/compat.h: Undefine WORDS_BIGENDIAN when it's defined as 0 --- 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