X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4c2c499860d631b746e0db10a5b2ff9cd279c241..f4e958a66d213d0263b560cc2e3037c1a415d2b3:/nominatim/postgresql.h diff --git a/nominatim/postgresql.h b/nominatim/postgresql.h index 6a14e94e..7050fca4 100644 --- a/nominatim/postgresql.h +++ b/nominatim/postgresql.h @@ -7,7 +7,11 @@ #define PG_OID_INT8 20 #define PG_OID_INT4 23 +#if defined(HAVE_BYTESWAP_H) #include +#elif defined(HAVE_SYS_ENDIAN_H) +#include +#endif #if __BYTE_ORDER == __BIG_ENDIAN #define PGint16(x) (x)