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

14 lines
546 B
Diff
Raw Normal View History

2018-01-14 04:19:36 +01:00
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