]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/postgresql.h
get precomputed housenumbers and postcodes from address column
[nominatim.git] / nominatim / postgresql.h
index 6a14e94e6ea56d33e2fd038979b677b0be601e04..7050fca4ed7302399097b4bbf262b32b38a2e5ec 100644 (file)
@@ -7,7 +7,11 @@
 #define PG_OID_INT8                    20
 #define PG_OID_INT4                    23
 
+#if defined(HAVE_BYTESWAP_H)
 #include <byteswap.h>
+#elif defined(HAVE_SYS_ENDIAN_H)
+#include <sys/endian.h>
+#endif
 
 #if __BYTE_ORDER == __BIG_ENDIAN
 #define PGint16(x)     (x)