diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-01 19:12:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-01 19:12:52 +0000 |
commit | 13ac54d1ca89d8a50b996cd26fefb9d836461a74 (patch) | |
tree | b22f555314a2025d8c493958c14cd095df546615 /src/include/port/hpux.h | |
parent | 75619cff569ed6fe3363e0d2b232ddc80814c3d3 (diff) |
Since HPUX now exists for Itanium, we should decouple the assumption
that OS=hpux is the same as CPU=hppa. First steps at doing this.
With these patches, we still work on hppa with either gcc or HP's cc.
We might work on hpux/itanium with gcc, but I can't test it. Definitely
will not work on hpux/itanium with non-gcc compiler, for lack of spinlock
code.
Diffstat (limited to 'src/include/port/hpux.h')
-rw-r--r-- | src/include/port/hpux.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/src/include/port/hpux.h b/src/include/port/hpux.h index e140c3cfcfc..83296d852ec 100644 --- a/src/include/port/hpux.h +++ b/src/include/port/hpux.h @@ -1,9 +1,3 @@ -#define HAS_TEST_AND_SET -typedef struct -{ - int sema[4]; -} slock_t; - #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif @@ -13,7 +7,28 @@ typedef struct #ifndef PDP_ENDIAN #define PDP_ENDIAN 3412 #endif + +#if defined(__hppa) + +#define HAS_TEST_AND_SET +typedef struct +{ + int sema[4]; +} slock_t; + #ifndef BYTE_ORDER #define BYTE_ORDER BIG_ENDIAN +#endif + +#elif defined(__ia64) + +#define HAS_TEST_AND_SET +typedef unsigned int slock_t; + +#ifndef BYTE_ORDER +#define BYTE_ORDER LITTLE_ENDIAN +#endif +#else +#error unrecognized CPU type for HP-UX #endif |