aboutsummaryrefslogtreecommitdiffstats
path: root/community/flatpak-builder/musl-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/flatpak-builder/musl-fixes.patch')
-rw-r--r--community/flatpak-builder/musl-fixes.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/flatpak-builder/musl-fixes.patch b/community/flatpak-builder/musl-fixes.patch
new file mode 100644
index 0000000000..406a06d834
--- /dev/null
+++ b/community/flatpak-builder/musl-fixes.patch
@@ -0,0 +1,17 @@
+--- a/config.h.in
++++ b/config.h.in
+@@ -140,3 +140,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
++