Re: [BUGS] ISM shared memory on solaris - Mailing list pgsql-patches

From Josh Wilmes
Subject Re: [BUGS] ISM shared memory on solaris
Date
Msg-id 3F995FE0.3090708@cisco.com
Whole thread Raw
In response to Re: [BUGS] ISM shared memory on solaris  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [BUGS] ISM shared memory on solaris
Re: [BUGS] ISM shared memory on solaris
List pgsql-patches
Bruce Momjian wrote:

> Josh Wilmes wrote:
>
>>Nope, __solaris__ is not defined on our system either.
>
>
> I thought our configure defined __portname__ for every platform, but I
> don't see that anywhere, so it seems we rely on the compiler to supply
> defines for the cpu and OS.
>
> Does src/tools/ccsym show you your defines?  I would like to have
> something that identifies Solaris rather than something that checks for
> ISM so that if the ISM define isn't found, we throw an error and we hear
> about it.

That would be preferable- i didn't know what was safe to assume would
always be defined.

ccsym is pretty neat.  Here's what it shows (gcc)

__GNUC__=2
__GNUC_MINOR__=95
sparc
sun
unix
__svr4__
__SVR4
__sparc__
__sun__
__unix__
__svr4__
__SVR4
__sparc
__sun
__unix
system=unix
system=svr4
__GCC_NEW_VARARGS__
cpu=sparc
machine=sparc



pgsql-patches by date:

Previous
From: "ViSolve Open Source Team"
Date:
Subject: PostgreSQL Patch: Test-and-set routine for HP-UX (IA-64)
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] PostgreSQL Patch: Test-and-set routine for HP-UX (IA-64)