myd7349 5eb0b00c87
Problem: In rare cases, afunix.h doesn't contain a definition for struct sockaddr_un (#4310)
* Problem: In rare cases, afunix.h doesn't contain a definition for struct sockaddr_un

According to https://github.com/microsoft/vcpkg/issues/21623,
struct sockaddr_un might be unavailable on some machines even afunix.h exists.

For example, on some machines, the content of afunix.h looks like this:
typedef struct _SOCKADDR_UN
{
     ADDRESS_FAMILY Family;
     wchar_t Path[63];
} SOCKADDR_UN, *PSOCKADDR_UN;

but on other machines, it may looks like this:
#define UNIX_PATH_MAX 108

typedef struct sockaddr_un
{
    ADDRESS_FAMILY sun_family;
    char sun_path[UNIX_PATH_MAX];
} SOCKADDR_UN, *PSOCKADDR_UN;

Fixes #3949

References:
- [Enable Unix-domain sockets support on Windows](8f3ec75de4)
- [AF_UNIX equivalent for Windows](https://stackoverflow.com/questions/9029174/af-unix-equivalent-for-windows)
- https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
2021-11-24 14:55:45 +00:00
..
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-06-29 13:02:35 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2019-03-18 10:15:27 +00:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-06-29 13:02:35 +01:00
2020-04-28 08:50:18 +00:00
2021-07-30 14:40:47 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2018-03-02 13:32:51 +01:00
2018-03-09 22:24:23 +01:00
2021-04-15 13:43:55 -05:00
2018-08-10 15:36:31 +02:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2018-02-02 15:47:43 +01:00
2021-09-22 16:40:17 +01:00
2018-02-02 15:47:43 +01:00
2018-08-10 15:36:31 +02:00
2020-05-01 22:27:44 +00:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-05-14 23:05:56 +01:00
2021-05-14 23:05:56 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2020-01-27 10:38:00 +01:00
2012-06-12 21:30:24 -04:00
2021-02-21 11:50:38 +00:00
2021-02-21 11:50:38 +00:00
2021-02-21 11:50:38 +00:00
2021-02-21 11:50:38 +00:00
2021-02-21 11:50:38 +00:00
2021-02-21 11:50:38 +00:00
2021-02-21 11:50:38 +00:00
2021-02-21 11:50:38 +00:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-09-22 16:40:17 +01:00
2021-06-29 13:02:35 +01:00
2021-09-22 16:40:17 +01:00
2021-09-24 11:04:20 +02:00