From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bq7SD-0007B5-7r for qemu-devel@nongnu.org; Fri, 30 Sep 2016 19:43:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bq7SA-0001Rd-SO for qemu-devel@nongnu.org; Fri, 30 Sep 2016 19:42:56 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bq7SA-0001RV-LX for qemu-devel@nongnu.org; Fri, 30 Sep 2016 19:42:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 254FA20A0B for ; Sat, 1 Oct 2016 01:42:54 +0200 (CEST) Date: Fri, 30 Sep 2016 19:41:01 -0400 From: Felix Janda Message-ID: <20160930234101.GD5887@nyan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH RFC] linux-user: peform __SIGRTMIN hack only when __SIGRTMIN is defined List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio This fixes a compilation error with the musl c library. --- I don't really understand the purpose of the hack, which was introduced in http://git.qemu.org/?p=qemu.git;a=commit;h=624f7979058b84cbf81c76d45f302ce757b213ca but musl does not have a separate thread library (it is included in libc.so), so I doubt that the hack is applies to it. --- linux-user/signal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/signal.c b/linux-user/signal.c index c750053..c89f83d 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -73,12 +73,14 @@ static uint8_t host_to_target_signal_table[_NSIG] = { [SIGPWR] = TARGET_SIGPWR, [SIGSYS] = TARGET_SIGSYS, /* next signals stay the same */ +#ifdef __SIGRTMIN /* Nasty hack: Reverse SIGRTMIN and SIGRTMAX to avoid overlap with host libpthread signals. This assumes no one actually uses SIGRTMAX :-/ To fix this properly we need to do manual signal delivery multiplexed over a single host signal. */ [__SIGRTMIN] = __SIGRTMAX, [__SIGRTMAX] = __SIGRTMIN, +#endif }; static uint8_t target_to_host_signal_table[_NSIG]; -- 2.7.3