about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-12 16:54:43 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-12 16:54:43 -0400
commit90e123f4a810d17c6bd8c2102939f6416481427e (patch)
tree98fb7d76965abcbcd309a9fbcf9262e3ab2a364c
parenta1546e8d61144fdb0f2ac3270250349fa77166f0 (diff)
downloadmusl-90e123f4a810d17c6bd8c2102939f6416481427e.tar.gz
musl-90e123f4a810d17c6bd8c2102939f6416481427e.tar.xz
musl-90e123f4a810d17c6bd8c2102939f6416481427e.zip
fix redef of sigprocmask constants on mips
this fix is easier than trying to reorder the header stuff
-rw-r--r--arch/mips/bits/signal.h3
-rw-r--r--include/signal.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/bits/signal.h b/arch/mips/bits/signal.h
index a8de0227..f51c29b9 100644
--- a/arch/mips/bits/signal.h
+++ b/arch/mips/bits/signal.h
@@ -27,6 +27,9 @@ typedef struct __ucontext {
 #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
diff --git a/include/signal.h b/include/signal.h
index 72bffd61..d4856a89 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -28,11 +28,9 @@ extern "C" {
 
 #define SIG_HOLD ((void (*)(int)) 2)
 
-#ifndef SIG_BLOCK
 #define SIG_BLOCK     0
 #define SIG_UNBLOCK   1
 #define SIG_SETMASK   2
-#endif
 
 #define SI_ASYNCNL (-60)
 #define SI_TKILL (-6)