aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compat/linux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compat/linux.h b/src/compat/linux.h
index 744c506..3b8cb44 100644
--- a/src/compat/linux.h
+++ b/src/compat/linux.h
@@ -28,4 +28,13 @@
28 28
29#define bu_gai_strerror gai_strerror 29#define bu_gai_strerror gai_strerror
30 30
31#ifndef TEMP_FAILURE_RETRY
32#define TEMP_FAILURE_RETRY(expression) \
33 (__extension__ \
34 ({ long int __result; \
35 do __result = (long int) (expression); \
36 while (__result == -1L && errno == EINTR); \
37 __result; }))
38#endif
39
31#endif 40#endif