From: Ulrich Drepper Date: Mon, 20 Sep 1999 01:24:41 +0000 (+0000) Subject: Protect real time signal definitions to let glibc compile with older X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c17b39500d727a44d1bbc21507f97a619b020497;p=thirdparty%2Fglibc.git Protect real time signal definitions to let glibc compile with older Linux versions (2.0.10 to 2.1.100 or so). --- diff --git a/sysdeps/unix/sysv/linux/i386/sigaction.c b/sysdeps/unix/sysv/linux/i386/sigaction.c index 57b2fa836d0..14584e71226 100644 --- a/sysdeps/unix/sysv/linux/i386/sigaction.c +++ b/sysdeps/unix/sysv/linux/i386/sigaction.c @@ -40,7 +40,9 @@ extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *, functions which have RT equivalents. */ int __libc_missing_rt_sigs; +#ifdef __NR_rt_sigaction static void restore_rt (void) asm ("__restore_rt"); +#endif static void restore (void) asm ("__restore"); /* If ACT is not NULL, change the action for SIG to *ACT. @@ -136,8 +138,10 @@ asm \ " int $0x80" \ ); +#ifdef __NR_rt_sigaction /* The return code for realtime-signals. */ RESTORE (restore_rt, __NR_rt_sigreturn) +#endif /* For the boring old signals. */ # undef RESTORE2