view dev/bubblewrap/patch-musl.patch @ 1224:d1dbb848c42d

core/musl: upgrade to 1.2.2 While here, provide ARM support and add libs to PKGPRESERVE.
author David Demelier <markand@malikania.fr>
date Fri, 29 Oct 2021 09:58:11 +0200
parents e9c3fdf98324
children
line wrap: on
line source

--- 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
+