Re: A build failure since only include header "postgresql/server/port.h"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Changqing Li <changqing(dot)li(at)windriver(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, Changqing Li <changqing(dot)li(at)eng(dot)windriver(dot)com>
Subject: Re: A build failure since only include header "postgresql/server/port.h"
Date: 2024-03-06 15:18:26
Message-ID: 136934.1709738306@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2024-03-06 15:40:22 Re: BUG #18379: LDAP bind password exposed
Previous Message PG Bug reporting form 2024-03-06 13:51:24 BUG #18379: LDAP bind password exposed