aboutsummaryrefslogtreecommitdiffstats
path: root/community/ostree/musl-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ostree/musl-fixes.patch')
-rw-r--r--community/ostree/musl-fixes.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/ostree/musl-fixes.patch b/community/ostree/musl-fixes.patch
new file mode 100644
index 0000000000..ce4a5e6dfb
--- /dev/null
+++ b/community/ostree/musl-fixes.patch
@@ -0,0 +1,18 @@
+--- a/config.h.in
++++ b/config.h.in
+@@ -148,3 +148,15 @@
+
+ /* 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
++
++