From 6de005a53a80e39676185d8e9991614e415e82dc Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 23 Oct 2003 20:54:57 +0000 Subject: [PATCH] define TEMP_FAILURE_RETRY for dietlibc-compilation git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@298 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/util-vserver/compat.h b/util-vserver/compat.h index ab18aea..f128874 100644 --- a/util-vserver/compat.h +++ b/util-vserver/compat.h @@ -47,4 +47,14 @@ typedef short int ctx_t; #endif +#if defined(__dietlibc__) + #define TEMP_FAILURE_RETRY(expression) \ + (__extension__ \ + ({ long int __result; \ + do __result = (long int) (expression); \ + while (__result == -1L && errno == EINTR); \ + __result; })) +#endif + + #endif // H_UTIL_VSERVER_COMPAT_H -- 1.8.1.5