summaryrefslogtreecommitdiff
path: root/system/bubblewrap/musl-fixes.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 05:05:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 05:18:33 -0500
commitce3dd8d4006760667251cc54e29437111f8f415f (patch)
tree052a48f70e30495e1986cc6977697911dac5999b /system/bubblewrap/musl-fixes.patch
parent96c6e51ae6627ba4683d4462a5662c3dd2d3c24f (diff)
downloadpackages-ce3dd8d4006760667251cc54e29437111f8f415f.tar.gz
packages-ce3dd8d4006760667251cc54e29437111f8f415f.tar.bz2
packages-ce3dd8d4006760667251cc54e29437111f8f415f.tar.xz
packages-ce3dd8d4006760667251cc54e29437111f8f415f.zip
system/bubblewrap: pull in for abuild-rootbld
Diffstat (limited to 'system/bubblewrap/musl-fixes.patch')
-rw-r--r--system/bubblewrap/musl-fixes.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/bubblewrap/musl-fixes.patch b/system/bubblewrap/musl-fixes.patch
new file mode 100644
index 000000000..ecf626331
--- /dev/null
+++ b/system/bubblewrap/musl-fixes.patch
@@ -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
++