File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Expand file tree Collapse file tree 2 files changed +27
-4
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.129 2004/09/02 17:10:58 tgl Exp $
69
+ * $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.130 2004/09/24 00:21:29 tgl Exp $
70
70
*
71
71
*-------------------------------------------------------------------------
72
72
*/
@@ -658,6 +658,18 @@ typedef unsigned char slock_t;
658
658
#endif
659
659
660
660
661
+ /* out-of-line assembler from src/backend/port/tas/*.s */
662
+
663
+ #if defined(__sun ) && defined(__i386 )
664
+ /*
665
+ * Solaris/386 (we only get here for non-gcc case)
666
+ */
667
+ #define HAS_TEST_AND_SET
668
+
669
+ typedef unsigned char slock_t ;
670
+ #endif
671
+
672
+
661
673
#endif /* !defined(HAS_TEST_AND_SET) */
662
674
663
675
Original file line number Diff line number Diff line change @@ -3,10 +3,21 @@ if test "$GCC" != yes ; then
3
3
CFLAGS="-O -v" # -v is like gcc -Wall
4
4
fi
5
5
6
- # Pick right test-and-set (TAS) code.
6
+ # Pick right test-and-set (TAS) code. We need out-of-line assembler
7
+ # when not using gcc.
7
8
case $host in
8
- sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
9
- i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
9
+ sparc-*-solaris*)
10
+ if test "$GCC" != yes ; then
11
+ need_tas=yes
12
+ tas_file=solaris_sparc.s
13
+ fi
14
+ ;;
15
+ i?86-*-solaris*)
16
+ if test "$GCC" != yes ; then
17
+ need_tas=yes
18
+ tas_file=solaris_i386.s
19
+ fi
20
+ ;;
10
21
esac
11
22
12
23
# -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things
You can’t perform that action at this time.
0 commit comments