Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 700f7f4

Browse files
committed
Change Solaris tests to test for SHM_SHARE_MMU, per Tom.
1 parent 5db5cbb commit 700f7f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/port/sysv_shmem.c

+3-3
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+
#ifdef SHM_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+
#ifdef SHM_SHARE_MMU
356356
/* use intimate shared memory on Solaris */
357357
SHM_SHARE_MMU
358358
#else

0 commit comments

Comments
 (0)