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

Commiteaae21f

Browse files
committed
Fixes for alphalinux port by abrams@philos.umass.edu
1 parent9d90de5 commiteaae21f

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.16 1997/08/12 22:53:55 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/s_lock.c,v 1.17 1997/08/17 02:39:54 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -44,7 +44,11 @@
4444

4545
#if defined(HAS_TEST_AND_SET)
4646

47+
# if defined(__alpha__)&& defined(linux)
48+
externlonginttas(slock_t*lock);
49+
# else
4750
externinttas(slock_t*lock);
51+
#endif
4852

4953
#if defined (nextstep)
5054
/*
@@ -126,7 +130,7 @@ S_LOCK_FREE(slock_t *lock)
126130
* (see storage/ipc.h).
127131
*/
128132

129-
#if defined(alpha)&& !defined(linuxalpha)
133+
#if defined(__alpha__)
130134

131135
void
132136
S_LOCK(slock_t*lock)
@@ -409,9 +413,9 @@ S_INIT_LOCK(slock_t *lock)
409413
#endif/* NEED_I386_TAS_ASM */
410414

411415

412-
#if defined(linuxalpha)
416+
#if defined(__alpha__)&& defined(linux)
413417

414-
int
418+
longint
415419
tas(slock_t*m)
416420
{
417421
slock_tres;
@@ -451,7 +455,7 @@ S_INIT_LOCK(slock_t *lock)
451455
S_UNLOCK(lock);
452456
}
453457

454-
#endif
458+
#endif/* defined(__alpha__) && defined(linux) */
455459

456460
#if defined(linux)&& defined(sparc)
457461

‎src/include/port/linux.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
# if defined(PPC)
1414
typedefunsignedintslock_t;
15-
# else
16-
typedefunsignedcharslock_t;
1715
# endif
1816

1917
# if defined(PPC)
@@ -24,3 +22,13 @@
2422
# if defined(sparc)
2523
# undef NEED_I386_TAS_ASM
2624
# endif
25+
26+
27+
# if defined(__alpha__)
28+
# undef NEED_I386_TAS_ASM
29+
# endif
30+
# if defined(__alpha__)
31+
typedeflongintslock_t;
32+
# else
33+
typedefunsignedcharslock_t;
34+
# endif

‎src/template/.similar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ i386-unknown-netbsd=netbsd
88
mips-sgi-irix5=irix5
99
sparc-sun-solaris2=sparc_solaris-gcc
1010
sparc-unknown-linux-gnu=linux-elf
11+
alpha-unknown-linux-gnu=linuxalpha

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp