aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2022-09-29 12:06:43 -0700
committerMike Buland <mike@xagasoft.com>2022-09-29 12:06:43 -0700
commit2cc382a91d4d252244ce6a5035932aab085b9b3f (patch)
tree675201869ddd51afe0fcd723e31cd2d1470e6f18 /src
parent819ff3d27012b4ec4a0a21c150c112a4dd28b14d (diff)
downloadlibbu++-2cc382a91d4d252244ce6a5035932aab085b9b3f.tar.gz
libbu++-2cc382a91d4d252244ce6a5035932aab085b9b3f.tar.bz2
libbu++-2cc382a91d4d252244ce6a5035932aab085b9b3f.tar.xz
libbu++-2cc382a91d4d252244ce6a5035932aab085b9b3f.zip
The TEMP_FAILURE_RETRY macro should be everywhere.
Diffstat (limited to '')
-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