void-packages/srcpkgs/flatpak/patches/musl-macros.patch

16 lines
588 B
Diff
Raw Normal View History

2017-04-13 17:37:23 +02:00
--- config.h.in.orig
+++ config.h.in
@@ -151,3 +151,12 @@
/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE
+
+#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