RE: autoconf check for AF_UNIX sockets - Mailing list pgsql-hackers

From Horák Daniel
Subject RE: autoconf check for AF_UNIX sockets
Date
Msg-id 243E56C0AC1BF74989C13687055917450AE6FD@exchange.mmp.plzen-city.cz
Whole thread Raw
In response to autoconf check for AF_UNIX sockets  (Horák Daniel <horak@sit.plzen-city.cz>)
List pgsql-hackers
> > can't you just do a link test that checks that AF_UNIX is defined?
> 
> That doesn't say anything about whether the Unix sockets 
> really work, as
> systems where they don't work define this occasionally.

My idea was to create a test that will try to compile, link and run a small
program. The program should contain "int s = socket(AF_UNIX, ...) and a test
for succesful creation of 's'. Only when this program will compile and run
OK then it should be defined HAVE_AF_UNIX_SOCKET.
    Dan


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: RE: SSL Patch - again :-)
Next
From: Zeugswetter Andreas SB
Date:
Subject: AW: pg_attribute growing and growing and growing