Mercurial > vanilla
diff dev/bubblewrap/patch-musl.patch @ 1073:e9c3fdf98324
dev/bubblewrap: initial import, closes #2316
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 03 Sep 2019 20:30:00 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev/bubblewrap/patch-musl.patch Tue Sep 03 20:30:00 2019 +0200 @@ -0,0 +1,17 @@ +--- a/config.h.in ++++ b/config.h.in +@@ -102,3 +102,14 @@ + + /* Define to 1 if you need to in order for `stat' and other things to work. */ + #undef _POSIX_SOURCE ++ ++/* 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 ++