make AF_UNIX sockets on Windows work
As of today, the qemu spice client does not make local (non IP) connections https://gitlab.com/qemu-project/qemu/-/issues/1426
It maybe because spice on windows is still skirting around unix sockets.
https://gitlab.freedesktop.org/spice/spice/-/blob/master/server/reds.cpp#L3442
L2514:reds.cpp:
#ifndef _WIN32
:
#else
return -1;
#endif
Since Windows 10 April 2018 Update release build 17134, windows supports unix sockets, so the check should not be to skip if windows, but to skip if windows version less than 17134.
Also, spice should be able to parse windows paths with \
(backslashes)
Ref
- Since 20171219, Insider Build 17063, Microsoft has added AF_UNIX to windows sockets.
https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/