Re: pgsql: Enable Unix-domain sockets support on Windows

2020-06-26 Thread Amit Kapila
On Sat, Mar 28, 2020 at 7:37 PM Peter Eisentraut wrote: > > Enable Unix-domain sockets support on Windows > + +/* + * Windows headers don't define this structure, but you can define it yourself + * to use the functionality. + */ +struct sockaddr_un +{ + unsigned short sun_family; + char sun_p

pgsql: Enable Unix-domain sockets support on Windows

2020-03-28 Thread Peter Eisentraut
Enable Unix-domain sockets support on Windows As of Windows 10 version 1803, Unix-domain sockets are supported on Windows. But it's not automatically detected by configure because it looks for struct sockaddr_un and Windows doesn't define that. So we just make our own definition on Windows and o