mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Change Solaris tests to test for SHM_SHARE_MMU, per Tom.
This commit is contained in:
parent
5db5cbb838
commit
700f7f4227
@ -10,7 +10,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.23 2003/10/26 04:54:44 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.24 2003/10/27 18:30:07 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -133,7 +133,7 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size)
|
|||||||
on_shmem_exit(IpcMemoryDelete, Int32GetDatum(shmid));
|
on_shmem_exit(IpcMemoryDelete, Int32GetDatum(shmid));
|
||||||
|
|
||||||
/* OK, should be able to attach to the segment */
|
/* OK, should be able to attach to the segment */
|
||||||
#if defined(__sun__) && defined(__sparc__)
|
#ifdef SHM_SHARE_MMU
|
||||||
/* use intimate shared memory on SPARC Solaris */
|
/* use intimate shared memory on SPARC Solaris */
|
||||||
memAddress = shmat(shmid, 0, SHM_SHARE_MMU);
|
memAddress = shmat(shmid, 0, SHM_SHARE_MMU);
|
||||||
#else
|
#else
|
||||||
@ -352,7 +352,7 @@ PGSharedMemoryAttach(IpcMemoryKey key, IpcMemoryId *shmid)
|
|||||||
|
|
||||||
hdr = (PGShmemHeader *) shmat(*shmid,
|
hdr = (PGShmemHeader *) shmat(*shmid,
|
||||||
UsedShmemSegAddr,
|
UsedShmemSegAddr,
|
||||||
#if defined(__sun__) && defined(__sparc__)
|
#ifdef SHM_SHARE_MMU
|
||||||
/* use intimate shared memory on Solaris */
|
/* use intimate shared memory on Solaris */
|
||||||
SHM_SHARE_MMU
|
SHM_SHARE_MMU
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user