X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ab6a99677293c9ddb96a717f03b8a009e98ab955..9e54d1d6eb3e418c13ea090eeee4c9f9ee30b55a:/nominatim/postgresql.h?ds=sidebyside 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)