Change Solaris tests to test for SHM_SHARE_MMU, per Tom.
authorBruce Momjian <[email protected]>
Mon, 27 Oct 2003 18:30:07 +0000 (18:30 +0000)
committerBruce Momjian <[email protected]>
Mon, 27 Oct 2003 18:30:07 +0000 (18:30 +0000)
src/backend/port/sysv_shmem.c

index d7774ef43b84db7626072e6b42dbfe2bfe56fac5..243eb29082a7512f5fb94b299a25b18381d09307 100644 (file)
@@ -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__)
+#ifdef 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__)
+#ifdef SHM_SHARE_MMU
        /* use intimate shared memory on Solaris */
                                                                  SHM_SHARE_MMU
 #else