Skip to content

Commit

Permalink
muslc: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Denys Vitali committed Nov 27, 2019
1 parent b57e5c8 commit 1ecf46f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin-manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1ecf46f

Please sign in to comment.