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

Commit700f7f4

Browse files
committed
Change Solaris tests to test for SHM_SHARE_MMU, per Tom.
1 parent5db5cbb commit700f7f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/port/sysv_shmem.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.23 2003/10/26 04:54:44 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.24 2003/10/27 18:30:07 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -133,7 +133,7 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size)
133133
on_shmem_exit(IpcMemoryDelete,Int32GetDatum(shmid));
134134

135135
/* OK, should be able to attach to the segment */
136-
#if defined(__sun__)&& defined(__sparc__)
136+
#ifdefSHM_SHARE_MMU
137137
/* use intimate shared memory on SPARC Solaris */
138138
memAddress=shmat(shmid,0,SHM_SHARE_MMU);
139139
#else
@@ -352,7 +352,7 @@ PGSharedMemoryAttach(IpcMemoryKey key, IpcMemoryId *shmid)
352352

353353
hdr= (PGShmemHeader*)shmat(*shmid,
354354
UsedShmemSegAddr,
355-
#if defined(__sun__)&&defined(__sparc__)
355+
#ifdefSHM_SHARE_MMU
356356
/* use intimate shared memory on Solaris */
357357
SHM_SHARE_MMU
358358
#else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp