Test for 'sun' rather than 'solaris' for intimate shared memory.
authorBruce Momjian <[email protected]>
Sun, 26 Oct 2003 04:53:24 +0000 (04:53 +0000)
committerBruce Momjian <[email protected]>
Sun, 26 Oct 2003 04:53:24 +0000 (04:53 +0000)
src/backend/port/sysv_shmem.c

index e8d009e7bcd452e8d5b42165ae9cab58f079d323..a9008da2375e467d31dbf0188fd0b6c91686dad8 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(solaris) && defined(__sparc__)
+#if defined(sun) && defined(__sparc__)
        /* 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(solaris) && defined(__sparc__)
+#if defined(sun) && defined(__sparc__)
        /* use intimate shared memory on Solaris */
                                                                  SHM_SHARE_MMU
 #else