Making AlpineLinux Compatible

This commit is contained in:
Victor Diego Alejandro Diaz Urbaneja 2019-09-30 02:40:42 -04:00 committed by Daniel Gibson
parent 6c7f8b1b07
commit 80d9c79944

View file

@ -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