muslc: Fix build

This commit is contained in:
Denys Vitali 2019-11-27 11:34:06 +01:00
parent b57e5c8d00
commit 1ecf46f58f
No known key found for this signature in database
GPG Key ID: B11EC33188D33A74

View File

@ -33,3 +33,13 @@ struct ovl_plugin *plugin_find (struct ovl_plugin_context *context, const char *
struct ovl_plugin_context *load_plugins (const char *plugins); struct ovl_plugin_context *load_plugins (const char *plugins);
#endif #endif
/* 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