]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: sigaltstack syscall number is always available
authorFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:13:29 +0000 (12:13 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:13:29 +0000 (12:13 +0100)
Due to the built-in tables, __NR_sigaltstack is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/sigstack.c

index 2f75e2643ad5cf210b2bea5867d1b6fb0e6a364d..32a378bd2695f450aa390524234b0cb9d8564c6d 100644 (file)
@@ -22,7 +22,6 @@
 #include <sys/syscall.h>
 
 
-#ifdef __NR_sigaltstack
 int
 sigstack (struct sigstack *ss, struct sigstack *oss)
 {
@@ -61,6 +60,3 @@ sigstack (struct sigstack *ss, struct sigstack *oss)
 }
 
 link_warning (sigstack, "the `sigstack' function is dangerous.  `sigaltstack' should be used instead.")
-#else
-# include <signal/sigstack.c>
-#endif