From 21f79fd580a5c70f7b7598d8ca8e87770219db94 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 14 Dec 2006 00:37:57 +0000
Subject: fix building when __NR_sigalstack does not exist

---
 libc/sysdeps/linux/common/sigaltstack.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libc/sysdeps/linux/common/sigaltstack.c b/libc/sysdeps/linux/common/sigaltstack.c
index 4267c747c..624c87792 100644
--- a/libc/sysdeps/linux/common/sigaltstack.c
+++ b/libc/sysdeps/linux/common/sigaltstack.c
@@ -9,5 +9,8 @@
 
 #include <sys/syscall.h>
 #include <signal.h>
+
+#ifdef __NR_sigaltstack
 _syscall2(int, sigaltstack, const struct sigaltstack *, ss,
 		  struct sigaltstack *, oss);
+#endif
-- 
cgit v1.2.3