diff options
author | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-07-11 14:03:01 +0000 |
---|---|---|
committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 1997-07-11 14:03:01 +0000 |
commit | c6df30edb96eb53fe88524759aa123d7393532b1 (patch) | |
tree | 853c19f66a5d319e39b8be48206b95f491f376bf | |
parent | a11ad874e4e653b5c464e081c8486dae99486c98 (diff) | |
download | postgresql-c6df30edb96eb53fe88524759aa123d7393532b1.tar.gz |
Modify port-specific definitions to support missing endian information.
Add extra include file for aix to find endian information.
-rw-r--r-- | src/include/port/aix.h | 1 | ||||
-rw-r--r-- | src/include/port/dgux.h | 14 | ||||
-rw-r--r-- | src/include/port/i386_solaris.h | 13 | ||||
-rw-r--r-- | src/include/port/sparc_solaris.h | 9 | ||||
-rw-r--r-- | src/include/port/sunos4.h | 15 | ||||
-rw-r--r-- | src/include/port/ultrix4.h | 9 | ||||
-rw-r--r-- | src/include/port/univel.h | 9 |
7 files changed, 63 insertions, 7 deletions
diff --git a/src/include/port/aix.h b/src/include/port/aix.h index 30b9a18493..25d33eb87b 100644 --- a/src/include/port/aix.h +++ b/src/include/port/aix.h @@ -5,3 +5,4 @@ # define HAVE_ANSI_CPP # define HAS_TEST_AND_SET typedef unsigned int slock_t; +#include <sys/machine.h> /* ENDIAN definitions for network communication */ diff --git a/src/include/port/dgux.h b/src/include/port/dgux.h index e99e3dbc2c..4d95ea3160 100644 --- a/src/include/port/dgux.h +++ b/src/include/port/dgux.h @@ -1,7 +1,17 @@ #define LINUX_ELF #define USE_POSIX_SIGNALS #define USE_POSIX_TIME -#ifndef BYTE_ORDER -# define BYTE_ORDER BIG_ENDIAN + +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef PDP_ENDIAN +#define PDP_ENDIAN 3412 +#endif +#ifndef BYTE_ORDER +#define BYTE_ORDER BIG_ENDIAN #endif diff --git a/src/include/port/i386_solaris.h b/src/include/port/i386_solaris.h index 0ac1116f06..c4070f1381 100644 --- a/src/include/port/i386_solaris.h +++ b/src/include/port/i386_solaris.h @@ -7,8 +7,17 @@ #include <sys/isa_defs.h> -#ifndef BYTE_ORDER -#define BYTE_ORDER LITTLE_ENDIAN +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef PDP_ENDIAN +#define PDP_ENDIAN 3412 +#endif +#ifndef BYTE_ORDER +#define BYTE_ORDER LITTLE_ENDIAN #endif #ifndef NAN diff --git a/src/include/port/sparc_solaris.h b/src/include/port/sparc_solaris.h index 25746c6266..9e7a6b7775 100644 --- a/src/include/port/sparc_solaris.h +++ b/src/include/port/sparc_solaris.h @@ -5,6 +5,15 @@ # define HAS_TEST_AND_SET typedef unsigned char slock_t; +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef PDP_ENDIAN +#define PDP_ENDIAN 3412 +#endif #ifndef BYTE_ORDER #define BYTE_ORDER BIG_ENDIAN #endif diff --git a/src/include/port/sunos4.h b/src/include/port/sunos4.h index c1ec7f5061..d395cbdbe1 100644 --- a/src/include/port/sunos4.h +++ b/src/include/port/sunos4.h @@ -1,5 +1,14 @@ #define USE_POSIX_TIME -#ifndef BYTE_ORDER -# define BYTE_ORDER BIG_ENDIAN -#endif +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef PDP_ENDIAN +#define PDP_ENDIAN 3412 +#endif +#ifndef BYTE_ORDER +#define BYTE_ORDER BIG_ENDIAN +#endif diff --git a/src/include/port/ultrix4.h b/src/include/port/ultrix4.h index c050965d5b..38cce4d257 100644 --- a/src/include/port/ultrix4.h +++ b/src/include/port/ultrix4.h @@ -1,6 +1,15 @@ # define USE_POSIX_TIME # define NEED_STRDUP +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef PDP_ENDIAN +#define PDP_ENDIAN 3412 +#endif #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif diff --git a/src/include/port/univel.h b/src/include/port/univel.h index f1a7afc83b..9ce1fef1cc 100644 --- a/src/include/port/univel.h +++ b/src/include/port/univel.h @@ -13,6 +13,15 @@ extern void srandom(int seed); extern int strcasecmp(char *s1,char *s2); extern int gethostname(char *name,int namelen); +#ifndef BIG_ENDIAN +#define BIG_ENDIAN 4321 +#endif +#ifndef LITTLE_ENDIAN +#define LITTLE_ENDIAN 1234 +#endif +#ifndef PDP_ENDIAN +#define PDP_ENDIAN 3412 +#endif #ifndef BYTE_ORDER #define BYTE_ORDER LITTLE_ENDIAN #endif |