Re: [HACKERS] Snapshot 270198 compile error

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: goran(at)bildbasen(dot)se (Goran Thyni)
Cc: fenix(at)am(dot)ring(dot)ru, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Snapshot 270198 compile error
Date: 1998-01-27 15:35:28
Message-ID: 199801271535.KAA05553@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-01-27 15:36:05 Re: [HACKERS] postmaster crash and .s.pgsql file
Previous Message Thomas G. Lockhart 1998-01-27 15:22:27 Re: [HACKERS] A small type extension example for the contrib directory (fwd)