Making AlpineLinux Compatible

This commit is contained in:
Victor Diego Alejandro Diaz Urbaneja 2019-09-30 02:40:42 -04:00 committed by GitHub
parent 7366a46e25
commit c4dbcb1cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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