RE: autoconf check for AF_UNIX sockets

From: Horák Daniel <horak(at)sit(dot)plzen-city(dot)cz>
To: "'pgsql-hackers(at)postgreSQL(dot)org'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: RE: autoconf check for AF_UNIX sockets
Date: 2000-08-21 09:11:58
Message-ID: 243E56C0AC1BF74989C13687055917450AE6FD@exchange.mmp.plzen-city.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-08-21 09:28:03 AW: pg_attribute growing and growing and growing
Previous Message Magnus Hagander 2000-08-21 07:55:50 RE: SSL Patch - again :-)