fix redef of sigprocmask constants on mips
authorRich Felker <dalias@aerifal.cx>
Thu, 12 Jul 2012 20:54:43 +0000 (16:54 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 12 Jul 2012 20:54:43 +0000 (16:54 -0400)
this fix is easier than trying to reorder the header stuff

arch/mips/bits/signal.h
include/signal.h

index a8de022..f51c29b 100644 (file)
@@ -27,6 +27,9 @@ typedef struct __ucontext {
 #define SA_RESETHAND  0x80000000
 #define SA_RESTORER   0x04000000
 
 #define SA_RESETHAND  0x80000000
 #define SA_RESTORER   0x04000000
 
+#undef SIG_BLOCK
+#undef SIG_UNBLOCK
+#undef SIG_SETMASK
 #define SIG_BLOCK     1
 #define SIG_UNBLOCK   2
 #define SIG_SETMASK   3
 #define SIG_BLOCK     1
 #define SIG_UNBLOCK   2
 #define SIG_SETMASK   3
index 72bffd6..d4856a8 100644 (file)
@@ -28,11 +28,9 @@ extern "C" {
 
 #define SIG_HOLD ((void (*)(int)) 2)
 
 
 #define SIG_HOLD ((void (*)(int)) 2)
 
-#ifndef SIG_BLOCK
 #define SIG_BLOCK     0
 #define SIG_UNBLOCK   1
 #define SIG_SETMASK   2
 #define SIG_BLOCK     0
 #define SIG_UNBLOCK   1
 #define SIG_SETMASK   2
-#endif
 
 #define SI_ASYNCNL (-60)
 #define SI_TKILL (-6)
 
 #define SI_ASYNCNL (-60)
 #define SI_TKILL (-6)