瀏覽代碼

fix building when __NR_sigalstack does not exist

Mike Frysinger 19 年之前
父節點
當前提交
21f79fd580
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      libc/sysdeps/linux/common/sigaltstack.c

+ 3 - 0
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