Re: [HACKERS] Snapshot 270198 compile error

Goran Thyni <goran@bildbasen.se>

From: Goran Thyni <goran@bildbasen.se>
To: fenix@am.ring.ru
Cc: pgsql-hackers@postgreSQL.org, maillist@candle.pha.pa.us
Date: 1998-01-27T10:08:33Z
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.

      regards,
-- 
---------------------------------------------
Gran Thyni, sysadm, JMS Bildbasen, Kiruna