From: Bruce Momjian Date: Sun, 26 Oct 2003 04:54:44 +0000 (+0000) Subject: 'sun' => '__sun__' X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a2bcffe4e8d113ff3fbbc8645c96c01c0ff94b3e;p=users%2Fbernd%2Fpostgres.git 'sun' => '__sun__' --- diff --git a/src/backend/port/sysv_shmem.c b/src/backend/port/sysv_shmem.c index a9008da237..d7774ef43b 100644 --- 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 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