From 1ecf46f58f393f1934f8570e2bc1d74736b79a30 Mon Sep 17 00:00:00 2001 From: Denys Vitali Date: Wed, 27 Nov 2019 11:34:06 +0100 Subject: [PATCH] muslc: Fix build --- plugin-manager.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin-manager.h b/plugin-manager.h index 51722d1..cb59018 100644 --- a/plugin-manager.h +++ b/plugin-manager.h @@ -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); #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