mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
win32: Handle (WSA)EWOULDBLOCK as EAGAIN.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/360>
This commit is contained in:
parent
4552fe15b3
commit
9c774c6295
1 changed files with 4 additions and 0 deletions
|
|
@ -407,6 +407,8 @@ ssize_t pa_read(int fd, void *buf, size_t count, int *type) {
|
||||||
|
|
||||||
if (WSAGetLastError() != WSAENOTSOCK) {
|
if (WSAGetLastError() != WSAENOTSOCK) {
|
||||||
errno = WSAGetLastError();
|
errno = WSAGetLastError();
|
||||||
|
if (errno == WSAEWOULDBLOCK)
|
||||||
|
errno = EAGAIN;
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -448,6 +450,8 @@ ssize_t pa_write(int fd, const void *buf, size_t count, int *type) {
|
||||||
#ifdef OS_IS_WIN32
|
#ifdef OS_IS_WIN32
|
||||||
if (WSAGetLastError() != WSAENOTSOCK) {
|
if (WSAGetLastError() != WSAENOTSOCK) {
|
||||||
errno = WSAGetLastError();
|
errno = WSAGetLastError();
|
||||||
|
if (errno == WSAEWOULDBLOCK)
|
||||||
|
errno = EAGAIN;
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue