From f75616b2b1095cf17c3330f33f4bcfcc8fc2fdcd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 16 May 2014 14:00:35 -0700 Subject: Fix __waitpid_nocancel link error. --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/not-cancel.h | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e913efa87..13118b41d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-05-16 Roland McGrath + + * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): + Use wait4 regardless of [__NR_waitpid]. + 2014-05-16 Maciej W. Rozycki PR libgcc/60166 diff --git a/sysdeps/unix/sysv/linux/not-cancel.h b/sysdeps/unix/sysv/linux/not-cancel.h index bc17107239..14f5e8bd8b 100644 --- a/sysdeps/unix/sysv/linux/not-cancel.h +++ b/sysdeps/unix/sysv/linux/not-cancel.h @@ -83,13 +83,8 @@ extern int __openat64_nocancel (int fd, const char *fname, int oflag, __fcntl_nocancel (fd, cmd, val) /* Uncancelable waitpid. */ -#ifdef __NR_waitpid -# define waitpid_not_cancel(pid, stat_loc, options) \ - __waitpid_nocancel (pid, stat_loc, options) -#else -# define waitpid_not_cancel(pid, stat_loc, options) \ +#define waitpid_not_cancel(pid, stat_loc, options) \ INLINE_SYSCALL (wait4, 4, pid, stat_loc, options, NULL) -#endif /* Uncancelable pause. */ #define pause_not_cancel() \ -- cgit v1.2.1