summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/i386/sigaction.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-20 01:22:07 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-20 01:22:07 +0000
commit4d512b65536b02d2f2961dd2e3c47678cfc3e5eb (patch)
tree0520f24e09b902e6b61b104c0ec3fc00d9e3ce09 /sysdeps/unix/sysv/linux/i386/sigaction.c
parent50b076f4ddf0b240ec90ff135bd31d9801366cac (diff)
downloadglibc-4d512b65536b02d2f2961dd2e3c47678cfc3e5eb.tar.gz
Protect real time signal definitions to let glibc compile with older Linux versions (2.0.10 to 2.1.100 or so).
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/sigaction.c')
-rw-r--r--sysdeps/unix/sysv/linux/i386/sigaction.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sigaction.c b/sysdeps/unix/sysv/linux/i386/sigaction.c
index c126cdaee8..8f2f308aee 100644
--- a/sysdeps/unix/sysv/linux/i386/sigaction.c
+++ b/sysdeps/unix/sysv/linux/i386/sigaction.c
@@ -45,7 +45,9 @@ extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *,
int __libc_missing_rt_sigs;
#endif
+#ifdef __NR_rt_sigaction
static void restore_rt (void) asm ("__restore_rt");
+#endif
static void restore (void) asm ("__restore");
@@ -155,8 +157,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