[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Detect UNIX domain sockets supported by recent Windows versions.
From: |
Collin Funk |
Subject: |
Detect UNIX domain sockets supported by recent Windows versions. |
Date: |
Tue, 23 Jul 2024 21:57:27 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Windows has supported socket (AF_UNIX, SOCK_STREAM, ...) since 2017 [1].
The checks in m4/sockpfaf.m4 where written before then. I've committed
this patch to support Windows.
On Windows version that support it, afunix.h is a small file with the
following type:
typedef struct sockaddr_un {
ADDRESS_FAMILY sun_family;
char sun_path[UNIX_PATH_MAX];
} SOCKADDR_UN, *PSOCKADDR_UN;
And AF_UNIX is defined in winsock2.h. Since Gnulib's sys/socket.h
includes this winsock2.h on Windows it will be defined in the proper
place if supported.
I'll write a sys_un module to deal with including afunix.h tomorrow.
Collin
[1] https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
0001-Detect-UNIX-domain-sockets-supported-by-recent-Windo.patch
Description: Text Data
- Detect UNIX domain sockets supported by recent Windows versions.,
Collin Funk <=