From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ku2IV-0003Ab-4x for qemu-devel@nongnu.org; Sun, 26 Oct 2008 05:52:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ku2IQ-00037D-UW for qemu-devel@nongnu.org; Sun, 26 Oct 2008 05:52:34 -0400 Received: from [199.232.76.173] (port=45447 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ku2IQ-000376-NS for qemu-devel@nongnu.org; Sun, 26 Oct 2008 05:52:30 -0400 Received: from wf-out-1314.google.com ([209.85.200.173]:53881) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ku2IQ-0005yO-7R for qemu-devel@nongnu.org; Sun, 26 Oct 2008 05:52:30 -0400 Received: by wf-out-1314.google.com with SMTP id 27so1566675wfd.4 for ; Sun, 26 Oct 2008 02:52:28 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 11:52:28 +0200 From: "Blue Swirl" Subject: Re: [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD In-Reply-To: <200810252114.m9PLEqUW077079@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200810252114.m9PLEqUW077079@saturn.kn-bremen.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juergen Lock Cc: qemu-devel@nongnu.org On 10/25/08, Juergen Lock wrote: > Hi! > > > In article you write: > >Revision: 5530 > > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5530 > >Author: blueswir1 > >Date: 2008-10-25 11:19:14 +0000 (Sat, 25 Oct 2008) > > > >Log Message: > >----------- > >Fix undefined pthread_sigmask warning on OpenBSD > > > >Modified Paths: > >-------------- > > trunk/audio/sdlaudio.c > > > >Modified: trunk/audio/sdlaudio.c > >=================================================================== > >--- trunk/audio/sdlaudio.c 2008-10-25 11:18:12 UTC (rev 5529) > >+++ trunk/audio/sdlaudio.c 2008-10-25 11:19:14 UTC (rev 5530) > >@@ -29,6 +29,8 @@ > > #ifndef _WIN32 > > #ifdef __sun__ > > #define _POSIX_PTHREAD_SEMANTICS 1 > >+#elif defined(__OpenBSD__) > >+#include > > #endif > > #include > > #endif > > > > I forgot to mention that I also patched this for FreeBSD, so the above > > >+#elif defined(__OpenBSD__) > > can be changed to > > >+#elif defined(__OpenBSD__) || defined(__FreeBSD__) > > Or do I need to send a proper patch? :) No, I'll just copy and paste. It looks like NetBSD uses signal.h like everyone should. http://www.opengroup.org/onlinepubs/009695399/functions/pthread_sigmask.html http://cvsweb.netbsd.org/bsdweb.cgi/src/include/signal.h?rev=1.50&content-type=text/x-cvsweb-markup&only_with_tag=MAIN