about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 15:44:59 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-09 16:54:01 +0100
commita19e646fd70d38f688a41daf15650f56d66cd7d9 (patch)
tree2cb12fc79b7a3773167f77f7ea613288e1a9af1d
parent2b192006102b7d73fe50bb47dfffb35929eee64b (diff)
downloadglibc-a19e646fd70d38f688a41daf15650f56d66cd7d9.tar.gz
glibc-a19e646fd70d38f688a41daf15650f56d66cd7d9.tar.xz
glibc-a19e646fd70d38f688a41daf15650f56d66cd7d9.zip
Linux: sigaltstack syscall number is always available
Due to the built-in tables, __NR_sigaltstack is always defined.
-rw-r--r--sysdeps/unix/sysv/linux/sigstack.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/sigstack.c b/sysdeps/unix/sysv/linux/sigstack.c
index 2f75e2643a..32a378bd26 100644
--- a/sysdeps/unix/sysv/linux/sigstack.c
+++ b/sysdeps/unix/sysv/linux/sigstack.c
@@ -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