From 027a3397114c349cf2c2e68fed7545345cd20849 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 21 Apr 2012 12:26:43 +0200 Subject: fixed for RHEL5 --- pgsql.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'pgsql.c') diff --git a/pgsql.c b/pgsql.c index 6b83dd0..fc8b154 100644 --- a/pgsql.c +++ b/pgsql.c @@ -25,25 +25,7 @@ #include /* for htonl, ntohl */ #include /* for uint64_t */ -/* for be64toh and htobe64 */ -#if defined(__linux__) -#include -#ifndef be64toh -#include -#if __BYTE_ORDER == __LITTLE_ENDIAN -#define htobe64( x ) bswap_64 ( x ) -#define be64toh( x ) bswap_64( x ) -#else -#define htobe64( x ) ( x ) -#define be64toh( x ) ( x ) -#endif -#endif -#elif defined(__FreeBSD__) || defined(__NetBSD__) -#include -#elif defined(__OpenBSD__) -#include -#define be64toh( x ) betoh64(x) -#endif +#include "endian.h" /* for be64toh and htobe64 */ #include "config.h" /* compiled in defaults */ -- cgit v1.2.3-54-g00ecf