mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-19 07:51:54 +00:00
Making AlpineLinux Compatible
This commit is contained in:
parent
6c7f8b1b07
commit
80d9c79944
1 changed files with 2 additions and 2 deletions
|
@ -644,7 +644,7 @@ int idTCP::Read(void *data, int size) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if defined(_GNU_SOURCE)
|
||||
#if defined(_GNU_SOURCE) && defined(TEMP_FAILURE_RETRY)
|
||||
// handle EINTR interrupted system call with TEMP_FAILURE_RETRY - this is probably GNU libc specific
|
||||
if ( ( nbytes = TEMP_FAILURE_RETRY( read( fd, data, size ) ) ) == -1 ) {
|
||||
#else
|
||||
|
@ -701,7 +701,7 @@ int idTCP::Write(void *data, int size) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
#if defined(_GNU_SOURCE)
|
||||
#if defined(_GNU_SOURCE) && defined(TEMP_FAILURE_RETRY
|
||||
// handle EINTR interrupted system call with TEMP_FAILURE_RETRY - this is probably GNU libc specific
|
||||
if ( ( nbytes = TEMP_FAILURE_RETRY ( write( fd, data, size ) ) ) == -1 ) {
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue