mpg123-1.30.2
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user