'sun' => '__sun__'
authorBruce Momjian <[email protected]>
Sun, 26 Oct 2003 04:54:44 +0000 (04:54 +0000)
committerBruce Momjian <[email protected]>
Sun, 26 Oct 2003 04:54:44 +0000 (04:54 +0000)
src/backend/port/sysv_shmem.c

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