]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib/compat.h: Undefine WORDS_BIGENDIAN when it's defined as 0
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Fri, 27 Oct 2017 08:08:36 +0000 (11:08 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 18 May 2018 09:42:10 +0000 (12:42 +0300)
src/lib/compat.h

index 78bf50d6067bc0173c3087397b472fa39751de32..71673e1da988d62debef0feeaf12d5e5f3ca04f4 100644 (file)
@@ -61,6 +61,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 <sys/sysmacros.h>
 #  ifdef HAVE_SYS_MKDEV_H