Browse Source

Guard the use of sigreturn as in x86_64, thx blindvt

Peter S. Mazinger 19 years ago
parent
commit
c2b267b1f8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/i386/sigaction.c

+ 2 - 0
libc/sysdeps/linux/i386/sigaction.c

@@ -155,6 +155,7 @@ __asm__						\
 RESTORE (restore_rt, __NR_rt_sigreturn)
 RESTORE (restore_rt, __NR_rt_sigreturn)
 #endif
 #endif
 
 
+#ifdef __NR_sigreturn
 /* For the boring old signals.  */
 /* For the boring old signals.  */
 # undef RESTORE2
 # undef RESTORE2
 # define RESTORE2(name, syscall) \
 # define RESTORE2(name, syscall) \
@@ -169,3 +170,4 @@ __asm__						\
    );
    );
 
 
 RESTORE (restore, __NR_sigreturn)
 RESTORE (restore, __NR_sigreturn)
+#endif