define TEMP_FAILURE_RETRY for dietlibc-compilation
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Oct 2003 20:54:57 +0000 (20:54 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Oct 2003 20:54:57 +0000 (20:54 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@298 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/compat.h

index ab18aea..f128874 100644 (file)
 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