void-packages/srcpkgs/libostree/patches/musl-fixes.patch
2017-04-25 18:02:44 +02:00

16 lines
636 B
Diff

--- config.h.in.orig
+++ config.h.in
@@ -154,3 +154,13 @@
/* 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