Re: [HACKERS] pid_t define missing in include/miscadmin.h ...

Поиск
Список
Период
Сортировка
От Alfred Perlstein
Тема Re: [HACKERS] pid_t define missing in include/miscadmin.h ...
Дата
Msg-id 20000214185524.F17536@fw.wintelcom.net
обсуждение исходный текст
Ответ на pid_t define missing in include/miscadmin.h ...  (The Hermit Hacker <scrappy@hub.org>)
Ответы Re: [HACKERS] pid_t define missing in include/miscadmin.h ...  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
* The Hermit Hacker <scrappy@hub.org> [000214 17:43] wrote:
> 
> Okay, I may be missing something here, but:
> 
> gmake[2]: Entering directory `/usr/local/pgsql/src/pgsql/src/backend/parser'
> gcc -I../../include -I../../backend   -O2 -m486 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -I..
-Wno-error  -c scansup.c -o scansup.o
 
> In file included from scansup.c:20:
> ../../include/miscadmin.h:225: syntax error before `pid'
> gmake[2]: *** [scansup.o] Error 1
> 
> Looking at include/miscadmin.h:
> 
> =========
> extern int SetPidFile(pid_t pid);
> 
> #endif   /* MISCADMIN_H */
> =========
> 
> but I can't find anywhere that pid_t is defined, and the cvs logs don't
> appear to indicate that anyone has touched that file in a few weeks ...
> 
> So, am I missing something?  This is using CVS source as of today, on
> FreeBSD 4.0-CURRENT ... 

Someone forgot to include <sys/types.h>.  I brought this up before but my
inexperiance with the postgresql build leaves me without a solution except
a simple #include directive in the offending file.

-Alfred


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "aubrey"
Дата:
Сообщение: subscribe
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] pid_t define missing in include/miscadmin.h ...