File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 63
63
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
64
64
* Portions Copyright (c) 1994, Regents of the University of California
65
65
*
66
- * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.120 2003/12/23 03:31:30 momjian Exp $
66
+ * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.121 2003/12/23 03:52:10 momjian Exp $
67
67
*
68
68
*-------------------------------------------------------------------------
69
69
*/
72
72
73
73
#include "storage/pg_sema.h"
74
74
75
+ #ifdef HAVE_SPINLOCKS /* skip spinlocks if requested */
75
76
76
77
#if defined(__GNUC__ ) || defined(__ICC )
77
78
/*************************************************************************
@@ -438,7 +439,7 @@ typedef unsigned char slock_t;
438
439
* Uses non-gcc inline assembly:
439
440
*/
440
441
441
- #if !defined(HAS_TEST_AND_SET )
442
+ #if !defined(HAS_TEST_AND_SET ) /* We didn't trigger above, let's try here */
442
443
443
444
#if defined(USE_UNIVEL_CC )
444
445
typedef unsigned char slock_t ;
@@ -604,6 +605,7 @@ typedef unsigned char slock_t;
604
605
605
606
#endif /* !defined(HAS_TEST_AND_SET */
606
607
608
+ #endif /* HAVE_SPINLOCKS */
607
609
608
610
609
611
#ifndef HAS_TEST_AND_SET
You can’t perform that action at this time.
0 commit comments