aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:13:29 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:13:29 +0100
commit1a5f1153a770a6f244f4a0eee0441033a1857990 (patch)
treec4b709b3308bf8c57779e9994bc9ab5d9f3b358b /sysdeps
parent822a391076864c7adc14368f1fad3acca99e4077 (diff)
downloadglibc-1a5f1153a770a6f244f4a0eee0441033a1857990.zip
glibc-1a5f1153a770a6f244f4a0eee0441033a1857990.tar.gz
glibc-1a5f1153a770a6f244f4a0eee0441033a1857990.tar.bz2
Linux: sigaltstack syscall number is always available
Due to the built-in tables, __NR_sigaltstack is always defined. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps')
-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 2f75e26..32a378b 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