Mercurial > vanilla
comparison 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 |
comparison
equal
deleted
inserted
replaced
1072:e6376b4df41e | 1073:e9c3fdf98324 |
---|---|
1 --- a/config.h.in | |
2 +++ b/config.h.in | |
3 @@ -102,3 +102,14 @@ | |
4 | |
5 /* Define to 1 if you need to in order for `stat' and other things to work. */ | |
6 #undef _POSIX_SOURCE | |
7 + | |
8 +/* taken from glibc unistd.h and fixes musl */ | |
9 +#ifndef TEMP_FAILURE_RETRY | |
10 +#define TEMP_FAILURE_RETRY(expression) \ | |
11 + (__extension__ \ | |
12 + ({ long int __result; \ | |
13 + do __result = (long int) (expression); \ | |
14 + while (__result == -1L && errno == EINTR); \ | |
15 + __result; })) | |
16 +#endif | |
17 + |