10 #if defined(HAVE_BYTESWAP_H)
 
  12 #elif defined(HAVE_SYS_ENDIAN_H)
 
  13 #include <sys/endian.h>
 
  16 #if __BYTE_ORDER == __BIG_ENDIAN
 
  17 #define PGint16(x)      (x)
 
  18 #define PGint32(x)      (x)
 
  19 #define PGint64(x)      (x)
 
  21 #define PGint16(x)      __bswap_16 (x)
 
  22 #define PGint32(x)      __bswap_32 (x)
 
  23 #define PGint64(x)      __bswap_64 (x)
 
  26 const char *build_conninfo(const char *db, const char *username, const char *password, const char *host, const char *port);