Changqing Li <changqing(dot)li(at)windriver(dot)com> writes:
> SIGNAL_ARGS is used in port.h, it is defined in c.h, But port.h don't
> include c.h, and cause above error. Should we include c.h in port.h?
No, absolutely not. The expectation in all PG header files is that
the .c file included one of postgres.h, postgres_fe.h, or c.h to
begin with (mainly to establish whether this file is backend code,
frontend code, or intended to work as both). This is your error
not port.h's.
regards, tom lane