Re: 7.1.3 compilation failure (libpq or aync?)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 7.1.3 compilation failure (libpq or aync?)
Дата
Msg-id 3299.1006278298@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 7.1.3 compilation failure (libpq or aync?)  (James Olsen <jamesml@planetolsen.com>)
Список pgsql-novice
James Olsen <jamesml@planetolsen.com> writes:
> If I keep the "sys/un.h" include, I get:
> In file included from /usr/include/sys/un.h:1,
>                  from test.c:3:
> /usr/include/linux/un.h:7: parse error before `sa_family_t'
> /usr/include/linux/un.h:7: warning: no semicolon at end of struct or union
> /usr/include/linux/un.h:9: parse error before `}'
> test.c: In function `main':
> test.c:6: storage size of `un' isn't known

It would appear that on your platform, sys/un.h requires another header
file to be included first (whichever one defines sa_family_t).  If you
poke around in /usr/include you should be able to find out which.
If you can derive a working test program please send it along.

            regards, tom lane

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

Предыдущее
От: James Olsen
Дата:
Сообщение: Re: 7.1.3 compilation failure (libpq or aync?)
Следующее
От: Brian
Дата:
Сообщение: Re: Emergency backup question.