Sfoglia il codice sorgente

fix building when __NR_sigalstack does not exist

Mike Frysinger 19 anni fa
parent
commit
21f79fd580
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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