"Joseph" <lters@mrtc.com> writes:
> In file included from mail.c:29:
> /usr/include/pgsql/utils/elog.h:37: parse error before `CritSectionCount'
> /usr/include/pgsql/utils/elog.h:37: warning: data definition has no type or
> storage class
At a guess, this code is neglecting to include postgres.h first. All
of the internal headers in PG assume that you included postgres.h
beforehand.
regards, tom lane