mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-25 06:59:52 -05:00
win32: Misc Unix socket fixes
* Make pa_parse_address recognize Unix socket addresses with Windows-style absolute paths. * Treat WASEINVAL as a stale socket. * Make HAVE_AF_UNIX in config templates recognize winsock2.h. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/546>
This commit is contained in:
parent
a01cce726f
commit
6222f610e8
3 changed files with 7 additions and 2 deletions
|
|
@ -243,7 +243,7 @@ int pa_unix_socket_is_stale(const char *fn) {
|
|||
if (errno == ECONNREFUSED)
|
||||
ret = 1;
|
||||
#else
|
||||
if (WSAGetLastError() == WSAECONNREFUSED)
|
||||
if (WSAGetLastError() == WSAECONNREFUSED || WSAGetLastError() == WSAEINVAL)
|
||||
ret = 1;
|
||||
#endif
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue