mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Back-port into 8.2 an old fix to ensure that BYTE_ORDER gets set
correctly on 64-bit Intel Solaris. Per my proposal yesterday, 8.2 is where we will start considering this platform supported. While this patch itself could easily go into older branches, there's not a huge amount of point unless we also make some significantly-more-invasive changes in the spinlock support.
This commit is contained in:
parent
a5c025cbeb
commit
30b9371e5d
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.14 2006/10/04 22:49:44 momjian Exp $ */
|
/* $PostgreSQL: pgsql/src/include/port/solaris.h,v 1.14.2.1 2010/08/30 19:51:46 tgl Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sort this out for all operating systems some time. The __xxx
|
* Sort this out for all operating systems some time. The __xxx
|
||||||
@ -9,6 +9,14 @@
|
|||||||
#define __i386__
|
#define __i386__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__amd64) && !defined(__amd64__)
|
||||||
|
#define __amd64__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__x86_64) && !defined(__x86_64__)
|
||||||
|
#define __x86_64__
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__sparc) && !defined(__sparc__)
|
#if defined(__sparc) && !defined(__sparc__)
|
||||||
#define __sparc__
|
#define __sparc__
|
||||||
#endif
|
#endif
|
||||||
@ -34,6 +42,9 @@
|
|||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__amd64___) || defined(__x86_64__)
|
||||||
|
#define BYTE_ORDER LITTLE_ENDIAN
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user