Can't completely get rid of #ifndef FRONTEND in palloc.h :-(
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Apr 2014 01:24:19 +0000 (21:24 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 28 Apr 2014 01:24:30 +0000 (21:24 -0400)
commit36825f38dd44d8630b07be843dfc1619fe9f8d5c
tree6e4f6a0bd0babe95cfc3980ff5b97b9ad1f266db
parente4c1a496f2320f65c27c7a08288c434d8b12876a
Can't completely get rid of #ifndef FRONTEND in palloc.h :-(

pg_controldata includes postgres.h not postgres_fe.h, so utils/palloc.h
must be able to compile in a "#define FRONTEND" context.  It appears that
Solaris Studio is smart enough to persuade us to define PG_USE_INLINE,
but not smart enough to not make a copy of unreferenced static functions;
which leads to an unsatisfied reference to CurrentMemoryContext.  So we
need an #ifndef FRONTEND around that declaration.  Per buildfarm.
src/include/utils/palloc.h