Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96ecf9d

Browse files
committed
Support Sun's compiler on SunOS4 (a/k/a Solaris 9). Per ayan@ayan.net
1 parentec0e307 commit96ecf9d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

‎src/backend/storage/lmgr/s_lock.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.33 2004/12/18 22:12:52 momjian Exp $
12+
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.34 2004/12/29 23:47:38 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -240,8 +240,15 @@ static void
240240
tas_dummy()/* really means: extern int tas(slock_t
241241
* *lock); */
242242
{
243+
244+
#ifdefSUNOS4_CC
243245
asm(".seg \"data\"");
244246
asm(".seg \"text\"");
247+
#else
248+
asm(".section \"data\"");
249+
asm(".section \"text\"");
250+
#endif
251+
245252
asm("_tas:");
246253

247254
/*

‎src/template/sunos4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if test "$GCC" != yes ; then
2+
CC="$CC -Xa"# relaxed ISO C mode
3+
CFLAGS="-v -DSUNOS4_CC"# -v is like gcc -Wall
4+
if test "$enable_debug" != yes; then
5+
CFLAGS="$CFLAGS -O"# any optimization breaks debug
6+
fi
7+
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp