Re: [HACKERS] Snapshot 270198 compile error

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Snapshot 270198 compile error
Дата
Msg-id 199801271535.KAA05553@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Snapshot 270198 compile error  (Goran Thyni <goran@bildbasen.se>)
Список pgsql-hackers
>
>
>    On linux-elf:
>    pqcomm.c: In function `StreamServerPort':
>    pqcomm.c:605: structure has no member named `sun_len'
>    pqcomm.c: In function `StreamOpen':
>    pqcomm.c:760: structure has no member named `sun_len'
>
> Yes,
> the sun_len member of struct sockaddr_un is BSD-specific.
> It is not there in Linux, nor in a SVR4-system we run here.
>
> I had hard-coded the extra offset to 1 in the UNIXSOCK_PATH macro,
> maybe 2 or 4 works OK on all systems.

I have applied a patch to document the +1 in the socket length.

--
Bruce Momjian
maillist@candle.pha.pa.us

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

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] A small type extension example for the contrib directory (fwd)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] postmaster crash and .s.pgsql file