mpg123-1.30.2

This commit is contained in:
Ozkan Sezer
2022-08-05 08:45:24 +03:00
parent 586c237857
commit b26727f0be
5 changed files with 21 additions and 16 deletions

View File

@@ -451,8 +451,9 @@ size_t unintr_write(int fd, void const *buffer, size_t bytes)
bytes -= part;
written += part;
} else if(errno != EINTR && errno != EAGAIN
#ifndef __KLIBC__
// OS/2 is funny with POSIX.
#if defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN)
// Not all platforms define it (or only in more modern POSIX modes).
// Standard says it is supposed to be a macro, so simple check here.
&& errno != EWOULDBLOCK
#endif
)
@@ -475,8 +476,7 @@ size_t unintr_read(int fd, void *buffer, size_t bytes)
bytes -= part;
got += part;
} else if(errno != EINTR && errno != EAGAIN
#ifndef __KLIBC__
// OS/2 is funny with POSIX.
#if defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN)
&& errno != EWOULDBLOCK
#endif
)