File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 66
66
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
67
67
* Portions Copyright (c) 1994, Regents of the University of California
68
68
*
69
- * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.128 2004/08/30 22:49:07 tgl Exp $
69
+ * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.129 2004/09/02 17:10:58 tgl Exp $
70
70
*
71
71
*-------------------------------------------------------------------------
72
72
*/
@@ -541,6 +541,18 @@ tas(volatile slock_t *lock)
541
541
#endif /* __hppa || __hppa__ */
542
542
543
543
544
+ #if defined(__hpux ) && defined(__ia64 ) && !defined(__GNUC__ )
545
+
546
+ #define HAS_TEST_AND_SET
547
+
548
+ typedef unsigned int slock_t ;
549
+
550
+ #include <ia64/sys/inline.h>
551
+ #define TAS (lock ) _Asm_xchg(_SZ_W, lock, 1, _LDHINT_NONE)
552
+
553
+ #endif /* HPUX on IA64, non gcc */
554
+
555
+
544
556
#if defined(__QNX__ ) && defined(__WATCOMC__ )
545
557
/*
546
558
* QNX 4 using WATCOM C
You can’t perform that action at this time.
0 commit comments