diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-12-29 23:47:40 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-12-29 23:47:40 +0000 |
commit | 96ecf9d5aa1b0a0da72a223460545750d06ceb89 (patch) | |
tree | 1d43f456d5bc9ee5e9c220b260701e80829ac437 /src/backend | |
parent | ec0e3075962c328681170353b73144bc2ce27d21 (diff) | |
download | postgresql-96ecf9d5aa1b0a0da72a223460545750d06ceb89.tar.gz postgresql-96ecf9d5aa1b0a0da72a223460545750d06ceb89.zip |
Support Sun's compiler on SunOS4 (a/k/a Solaris 9). Per ayan@ayan.net
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/storage/lmgr/s_lock.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/s_lock.c b/src/backend/storage/lmgr/s_lock.c index 56af61db68a..80693a54191 100644 --- a/src/backend/storage/lmgr/s_lock.c +++ b/src/backend/storage/lmgr/s_lock.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.33 2004/12/18 22:12:52 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.34 2004/12/29 23:47:38 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -240,8 +240,15 @@ static void tas_dummy() /* really means: extern int tas(slock_t * *lock); */ { + +#ifdef SUNOS4_CC asm(".seg \"data\""); asm(".seg \"text\""); +#else + asm(".section \"data\""); + asm(".section \"text\""); +#endif + asm("_tas:"); /* |