From c4dbcb1cc31d34df7d2cb1f099db657df046d82f Mon Sep 17 00:00:00 2001 From: Victor Diego Alejandro Diaz Urbaneja <49420637+sodomon2@users.noreply.github.com> Date: Mon, 30 Sep 2019 02:40:42 -0400 Subject: [PATCH] Making AlpineLinux Compatible --- neo/sys/posix/posix_net.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/sys/posix/posix_net.cpp b/neo/sys/posix/posix_net.cpp index db83fa90..efc7d4c3 100644 --- a/neo/sys/posix/posix_net.cpp +++ b/neo/sys/posix/posix_net.cpp @@ -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