From owner-freebsd-standards@FreeBSD.ORG Sun Nov 2 16:47:12 2008 Return-Path: Delivered-To: standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3776106567F for ; Sun, 2 Nov 2008 16:47:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 645AA8FC19 for ; Sun, 2 Nov 2008 16:47:12 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id mA2GilYh037497 for ; Sun, 2 Nov 2008 09:44:47 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 02 Nov 2008 09:46:02 -0700 (MST) Message-Id: <20081102.094602.-1751001037.imp@bsdimp.com> To: standards@freebsd.org From: "M. Warner Losh" X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Sun_Nov__2_09_46_02_2008_819)--" Content-Transfer-Encoding: 7bit Cc: Subject: Fw: [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2008 16:47:13 -0000 ----Next_Part(Sun_Nov__2_09_46_02_2008_819)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Looks like Blue Swirl is right... Would anybody object to picking up the changes from NetBSD? Warner ----Next_Part(Sun_Nov__2_09_46_02_2008_819)-- Content-Type: Message/Rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Delivery-Date: Sun, 26 Oct 2008 04:07:20 -0600 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on harmony.bsdimp.com X-Spam-Level: * X-Spam-Status: No, score=1.3 required=3.5 tests=EMPTY_MESSAGE, MISSING_SUBJECT, NO_RECEIVED autolearn=no version=3.2.5 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m9QA76ja051524 for ; Sun, 26 Oct 2008 04:07:06 -0600 (MDT) (envelope-from qemu-devel-bounces+imp=bsdimp.com@nongnu.org) Received: from localhost ([127.0.0.1]:35596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ku2K9-0003CP-C4 for imp@bsdimp.com; Sun, 26 Oct 2008 05:54:17 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jTSuEaiU/4crWvd8v0kwDAqaDQpEu6rTHSdzn5oIqrw=; b=IyfF72IcNW6AqpqbxMlsNIEa9tpsChFsKPxa2HzAhiHzScdbtmwbgbj/ORVJolKtIu KTvWxzBzBoq0KzxBdk0rHnM4GxdfFToX82sGYzc3+MMyXIx+7PNNTu24JGSmv0xspux9 mzBCKifv3LyDWMHEJt/ctQFTN1V20rqLU8puk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VvV/5BflfTBDPb4CwciFpKTrJq3IhMOtBvqWnhmIX4+Fw+oac70D79cioWEwhYcOgW 0nquHdU13kZ5n4tePIHD3m8f3aFph/n9+SrieYncldJPlBjBN0f1F4VaM4mLjp2MeaOR OS6p++h/E5/QgmMB+Ec8QeKzFwbO9PjpJy1jU= Received: by 10.142.173.14 with SMTP id v14mr1988624wfe.231.1225014748776; Sun, 26 Oct 2008 02:52:28 -0700 (PDT) Received: by 10.143.15.12 with HTTP; Sun, 26 Oct 2008 02:52:28 -0700 (PDT) Message-ID: Date: Sun, 26 Oct 2008 11:52:28 +0200 From: "Blue Swirl" To: "Juergen Lock" 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> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: qemu-devel@nongnu.org X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+imp=bsdimp.com@nongnu.org Errors-To: qemu-devel-bounces+imp=bsdimp.com@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 ----Next_Part(Sun_Nov__2_09_46_02_2008_819)----