aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/sigstack.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/sigstack.c')
-rw-r--r--sysdeps/unix/sysv/linux/sigstack.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sigstack.c b/sysdeps/unix/sysv/linux/sigstack.c
index bca7dc634e..cbae972048 100644
--- a/sysdeps/unix/sysv/linux/sigstack.c
+++ b/sysdeps/unix/sysv/linux/sigstack.c
@@ -19,8 +19,10 @@
Boston, MA 02111-1307, USA. */
#include <signal.h>
+#include <sys/syscall.h>
+#ifdef __NR_sigaltstack
int
sigstack (ss, oss)
const struct sigstack *ss;
@@ -59,3 +61,8 @@ sigstack (ss, oss)
return result;
}
+
+link_warning (sigstack, "the `sigstack' function is dangerous. `sigaltstack' should be used instead.")
+#else
+# include <sysdeps/generic/sigstack.c>
+#endif