python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / bubblewrap / patches / fix-TEMP_FAILTURE_RETRY-musl.patch
blob5781d7e7934c2a4bae47a34882c85f78906cf193
1 --- bubblewrap.c
2 +++ bubblewrap.c
3 @@ -42,6 +42,16 @@
4 #define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */
5 #endif
7 +/* taken from glibc unistd.h and fixes musl */
8 +#ifndef TEMP_FAILURE_RETRY
9 +#define TEMP_FAILURE_RETRY(expression) \
10 + (__extension__ \
11 + ({ long int __result; \
12 + do __result = (long int) (expression); \
13 + while (__result == -1L && errno == EINTR); \
14 + __result; }))
15 +#endif
17 /* Globals to avoid having to use getuid(), since the uid/gid changes during runtime */
18 static uid_t real_uid;
19 static gid_t real_gid;