]> granicus.if.org Git - postgresql/commit
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:19 +0000 (21:24 -0400)
commita9baeb361d635963a19a0268a7d60636c813d2ee
tree9e1a9dbec4612bca05cc79fba7ec3881ba54c67d
parent5035701e07e8bd395aa878465a102afd7b74e8c3
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