void-packages/srcpkgs/flatpak-builder/patches/fix-temp-failure-retry.patch

14 lines
546 B
Diff

index 0000000..878bd82
--- /dev/null
+++ libglnx/config.h
@@ -0,0 +1,9 @@
+/* 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