X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4c2c499860d631b746e0db10a5b2ff9cd279c241..9e54d1d6eb3e418c13ea090eeee4c9f9ee30b55a:/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)