]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Protect real time signal definitions to let glibc compile with older
authorUlrich Drepper <drepper@redhat.com>
Mon, 20 Sep 1999 01:24:41 +0000 (01:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 20 Sep 1999 01:24:41 +0000 (01:24 +0000)
Linux versions (2.0.10 to 2.1.100 or so).

sysdeps/unix/sysv/linux/i386/sigaction.c

index 57b2fa836d09b2ac02abc170258bc18205f27cae..14584e712264a5c648e401ab90d10efb7b4b3b14 100644 (file)
@@ -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