#include <boost/range/detail/common.hpp>
#include <stdint.h>
#include <netinet/in.h>
-#include <bit>
#include <stdexcept>
#include "../../pdns/misc.hh"
#endif
#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)