projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d00eeab
)
Change Solaris tests to test for SHM_SHARE_MMU, per Tom.
author
Bruce Momjian
<
[email protected]
>
Mon, 27 Oct 2003 18:30:07 +0000
(18:30 +0000)
committer
Bruce Momjian
<
[email protected]
>
Mon, 27 Oct 2003 18:30:07 +0000
(18:30 +0000)
src/backend/port/sysv_shmem.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/port/sysv_shmem.c
b/src/backend/port/sysv_shmem.c
index d7774ef43b84db7626072e6b42dbfe2bfe56fac5..243eb29082a7512f5fb94b299a25b18381d09307 100644
(file)
--- a/
src/backend/port/sysv_shmem.c
+++ b/
src/backend/port/sysv_shmem.c
@@
-133,7
+133,7
@@
InternalIpcMemoryCreate(IpcMemoryKey memKey, uint32 size)
on_shmem_exit(IpcMemoryDelete, Int32GetDatum(shmid));
/* OK, should be able to attach to the segment */
-#if
defined(__sun__) && defined(__sparc__)
+#if
def SHM_SHARE_MMU
/* use intimate shared memory on SPARC Solaris */
memAddress = shmat(shmid, 0, SHM_SHARE_MMU);
#else
@@
-352,7
+352,7
@@
PGSharedMemoryAttach(IpcMemoryKey key, IpcMemoryId *shmid)
hdr = (PGShmemHeader *) shmat(*shmid,
UsedShmemSegAddr,
-#if
defined(__sun__) && defined(__sparc__)
+#if
def SHM_SHARE_MMU
/* use intimate shared memory on Solaris */
SHM_SHARE_MMU
#else