--- mongodb-src-r2.2.4/src/mongo/util/goodies.h.orig 2013-04-01 04:41:49.000000000 +0200 +++ mongodb-src-r2.2.4/src/mongo/util/goodies.h 2020-08-09 18:15:59.585368115 +0200 @@ -18,7 +18,7 @@ #pragma once -#include +#include #include #include "mongo/bson/util/misc.h" @@ -99,11 +99,11 @@ ((x & 0xff000000) >> 24); } -#if defined(BOOST_LITTLE_ENDIAN) +#if BOOST_ENDIAN_LITTLE_BYTE inline unsigned long fixEndian(unsigned long x) { return x; } -#elif defined(BOOST_BIG_ENDIAN) +#elif BOOST_ENDIAN_BIG_BYTE inline unsigned long fixEndian(unsigned long x) { return swapEndian(x); }