From: Peter van Dijk Date: Mon, 20 Mar 2023 09:03:25 +0000 (+0100) Subject: lmdb-safe: remove unused header, plus assert macro presence X-Git-Tag: auth-4.8.0-alpha1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51c866efcdcb228a29a479d91e89c4beea3eabc1;p=thirdparty%2Fpdns.git lmdb-safe: remove unused header, plus assert macro presence --- diff --git a/ext/lmdb-safe/lmdb-safe.hh b/ext/lmdb-safe/lmdb-safe.hh index 60715a0a93..2d5983be67 100644 --- a/ext/lmdb-safe/lmdb-safe.hh +++ b/ext/lmdb-safe/lmdb-safe.hh @@ -19,7 +19,6 @@ #include #include #include -#include #include #include "../../pdns/misc.hh" #endif @@ -103,6 +102,10 @@ std::shared_ptr getMDBEnv(const char* fname, int flags, int mode, uint64 #ifndef DNSDIST +#if !defined(__BYTE_ORDER__) || !defined(__ORDER_LITTLE_ENDIAN__) || !defined(__ORDER_BIG_ENDIAN__) +#error "your compiler did not define byte order macros" +#endif + // FIXME do something more portable than __builtin_bswap64 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #define _LMDB_SAFE_BSWAP64MAYBE(x) __builtin_bswap64(x)