Upstream: No Reason: making it works with Alpine musl --- a/config.h.in +++ b/config.h.in @@ -204,3 +204,13 @@ /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES + +/* taken from glibc unistd.h and fixes musl */ +#ifndef TEMP_FAILURE_RETRY +#define TEMP_FAILURE_RETRY(expression) \ + (__extension__ \ + ({ long int __result; \ + do __result = (long int) (expression); \ + while (__result == -1L && errno == EINTR); \ + __result; })) +#endif