Re: compile error of PostgreSQL 7.2 on FreeBSD-current
От | hiroyuki hanai |
---|---|
Тема | Re: compile error of PostgreSQL 7.2 on FreeBSD-current |
Дата | |
Msg-id | 20020209.010857.42778788.hanai@imgsrc.co.jp обсуждение исходный текст |
Ответ на | compile error of PostgreSQL 7.2 on FreeBSD-current (hiroyuki hanai <hanai@imgsrc.co.jp>) |
Ответы |
Re: compile error of PostgreSQL 7.2 on FreeBSD-current
|
Список | pgsql-hackers |
On Fri, 8 Feb 2002, Bruce Momjianwrote: > > How about including <sys/types.h> before including > > <grp.h> in src/backend/utils/init/findbe.c? > > > > I've just compiled 7.2 on FreeBSD-current, which has failed > > with compilation error because the type of gr_gid in struct group > > is gid_t on FreeBSD-current. > > sys/types.h include is in 7.2. Please upgrade. Bruce, I know sys/types include is in 7.2. I'm talking about the order to include header files. src/backend/utils/init/findbe.c in 7.2 includes <grp.h> *before* <sys/types.h>. 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. Regards, hiro hanai
В списке pgsql-hackers по дате отправления: