]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/postgresql.h
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / nominatim / postgresql.h
index ebece6106c065ef391284a96604cd2ed739bcdd6..7050fca4ed7302399097b4bbf262b32b38a2e5ec 100644 (file)
@@ -7,6 +7,12 @@
 #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)
 #define PGint32(x)     (x)