aboutsummaryrefslogtreecommitdiffstats
path: root/main/bubblewrap/musl-fixes.patch
blob: ecf6263310bdbc9b9001624ba3091892f53b1a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
+