X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ab6a99677293c9ddb96a717f03b8a009e98ab955..118517b076c048b2e22a6fdf1394d127afcfa262:/nominatim/postgresql.h diff --git a/nominatim/postgresql.h b/nominatim/postgresql.h index ebece610..7050fca4 100644 --- a/nominatim/postgresql.h +++ b/nominatim/postgresql.h @@ -7,6 +7,12 @@ #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) #define PGint32(x) (x)