Re: compile error of PostgreSQL 7.2 on FreeBSD-current

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hiroyuki hanai <hanai(at)imgsrc(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: compile error of PostgreSQL 7.2 on FreeBSD-current
Date: 2002-02-08 17:12:24
Message-ID: 24256.1013188344@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hiroyuki hanai <hanai(at)imgsrc(dot)co(dot)jp> writes:
> But, the type of gr_gid in struct group, which is defined
> in <grp.h>, is gid_t. So, <sys/types> should be inclueded
> before <grp.h>

> The type of gr_gid in <grp.h> was `int' before 22th Jan 2002.
> It has been changed as gid_t by Mark Murray on 22th Jan 2002.

One would think this is a bug in FreeBSD's <grp.h>. Shouldn't it be
responsible for including the headers it depends on?

We can certainly move our header inclusion order around, but that is
simply an application-level workaround for a broken system header.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-02-08 17:13:22 Re: Database abstration layers
Previous Message Christopher Kings-Lynne 2002-02-08 17:12:10 Re: IFNULL -> COALESCE