|
Message-Id: <20151210154918.74e590b8da604a93b17c3d49@ubnt.com> Date: Thu, 10 Dec 2015 15:49:18 +0200 From: Dmitry Ivanov <dmitrijs.ivanovs@...t.com> To: musl@...ts.openwall.com Subject: [PATCH v2] Different siginfo_t for MIPS Linux for MIPS has different siginfo_t structure. Also, some si_code values are different. This patch is required for POSIX timers to work. --- include/signal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/signal.h b/include/signal.h index 559362f..c026e23 100644 --- a/include/signal.h +++ b/include/signal.h @@ -36,9 +36,15 @@ extern "C" { #define SI_ASYNCNL (-60) #define SI_TKILL (-6) #define SI_SIGIO (-5) +#ifdef __mips__ +#define SI_ASYNCIO (-2) +#define SI_MESGQ (-4) +#define SI_TIMER (-3) +#else #define SI_ASYNCIO (-4) #define SI_MESGQ (-3) #define SI_TIMER (-2) +#endif #define SI_QUEUE (-1) #define SI_USER 0 #define SI_KERNEL 128 @@ -86,7 +92,11 @@ union sigval { }; typedef struct { +#ifdef __mips__ + int si_signo, si_code, si_errno; +#else int si_signo, si_errno, si_code; +#endif union { char __pad[128 - 2*sizeof(int) - sizeof(long)]; struct { -- 2.1.4
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.