Re: Errors compiling hba.c in current CVS

Поиск
Список
Период
Сортировка
От Kurt Roeckx
Тема Re: Errors compiling hba.c in current CVS
Дата
Msg-id 20030617160332.GA4795@ping.be
обсуждение исходный текст
Ответ на Re: Errors compiling hba.c in current CVS  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Mon, Jun 16, 2003 at 05:21:01PM -0400, Bruce Momjian wrote:
> 
> Does the following patch fix the problem?  It doesn't use sa_family_t
> anymore.
> 
> !     sa_family_t    ss_family;    /* address family */
[...]
> !     char dummy_sa_family[SIZEOF_SOCKADDR_FAMILY];

That is NOT going to work. Not only did you change the only
member of the struct we use, you changed it into an array.

Something like this might do it:

#if SIZEOF_SOCKADDR_FAMILY == 1uint8_t        ss_family;
#elif SIZEOF_SOCKADDR_FAMILY == 2uint16_t    ss_family;
#else
#error unsupported sa_family size
#endif


And isn't this patch more for an other thread anyway?


Kurt



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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Errors compiling hba.c in current CVS
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Errors compiling hba.c in current CVS