void-packages/srcpkgs/nsjail/files/musl-compat.h
Jürgen Buchmüller b2034e4a5b nsjail: fix *-musl
2017-01-04 17:34:07 +01:00

11 lines
287 B
C

#if !defined(MUSL_COMPAT_H)
#define MUSL_COMPAT_H
# define TEMP_FAILURE_RETRY(expression) \
(__extension__ \
({ long int __result; \
do __result = (long int) (expression); \
while (__result == -1L && errno == EINTR); \
__result; }))
#endif /* !defined(MUSL_COMPAT_H) */