From 49d3f93362c7eb359f82a4d9204a0519f73f3820 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 15 Jan 2013 13:47:31 +0000 Subject: libc/pause: Enable pause_nocancel for arches without __NR_pause Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/not-cancel.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/not-cancel.h') diff --git a/libc/sysdeps/linux/common/not-cancel.h b/libc/sysdeps/linux/common/not-cancel.h index 08dab8c9d..acf8e39e8 100644 --- a/libc/sysdeps/linux/common/not-cancel.h +++ b/libc/sysdeps/linux/common/not-cancel.h @@ -102,9 +102,11 @@ extern int __openat64_nocancel (int fd, const char *fname, int oflag, #ifdef __NR_pause # define pause_not_cancel() \ INLINE_SYSCALL (pause, 0) -/*#else +#else +# include +extern __typeof(pause) __pause_nocancel; # define pause_not_cancel() \ - __pause_nocancel ()*/ + __pause_nocancel () #endif /* Uncancelable nanosleep. */ -- cgit v1.2.3