about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/sigstack.c7
-rw-r--r--sysdeps/unix/sysv/linux/sparc/Dist2
2 files changed, 8 insertions, 1 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
diff --git a/sysdeps/unix/sysv/linux/sparc/Dist b/sysdeps/unix/sysv/linux/sparc/Dist
index e7569d1ad3..20d6bfa712 100644
--- a/sysdeps/unix/sysv/linux/sparc/Dist
+++ b/sysdeps/unix/sysv/linux/sparc/Dist
@@ -1,2 +1,2 @@
-sys/kernel_termios.h
+kernel_termios.h
 sys/trap.h