Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTbhn-0004Hj-Pl for qemu-devel@nongnu.org; Sat, 09 Jan 2010 08:50:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTbhm-0004Fx-8H for qemu-devel@nongnu.org; Sat, 09 Jan 2010 08:50:15 -0500 Received: from [199.232.76.173] (port=39528 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTbhm-0004Fq-4v for qemu-devel@nongnu.org; Sat, 09 Jan 2010 08:50:14 -0500 Received: from gelbbaer.kn-bremen.de ([78.46.108.116]:40951 helo=smtp.kn-bremen.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTbhl-00009p-Ht for qemu-devel@nongnu.org; Sat, 09 Jan 2010 08:50:13 -0500 From: Juergen Lock Date: Sat, 9 Jan 2010 14:45:18 +0100 Subject: Re: [Qemu-devel] [PATCH] Fix build if OSS_GETVERSION is not defined Message-ID: <20100109134518.GA81408@triton8.kn-bremen.de> References: <20100107222343.GA90709@triton8.kn-bremen.de> <20100108194637.GA36023@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Juergen Lock , qemu-devel@nongnu.org On Sat, Jan 09, 2010 at 12:33:44AM +0300, malc wrote: > On Fri, 8 Jan 2010, Juergen Lock wrote: > > > On Fri, Jan 08, 2010 at 11:27:13AM +0300, malc wrote: > > > On Thu, 7 Jan 2010, Juergen Lock wrote: > > > > > > > In this case it was missing on FreeBSD <= 6.x (Which also doesn't have > > > > SNDCTL_DSP_POLICY yet so the version doesn't get used anyway.) > > > > > > I've commited slightly different fix for the issue, thanks. > > > > > Hmm looking at the last hunk of the commit, > > > > >[...] > > >@@ -289,9 +292,17 @@ static int oss_open (int in, struct oss_params *req, > > > if (conf.debug) { > > > dolog ("OSS version = %#x\n", version); > > > } > > >+#endif > > > > > > #ifdef SNDCTL_DSP_POLICY > > >- if (conf.policy >= 0 && version >= 0x040000) { > > >+ if (conf.policy >= 0 > > >+#ifdef OSS_GETVERSION > > >+ && version >= 0x040000 > > >+#else > > >+ 0 > > > > ...these last two lines (#else and 0) probably should go, I dont think > > the compiler likes whitespace between digits. :) > > Uh, yeah, my bad, sorry, hopefuly fixed now.. > Yeah looking better now... Thanx! > > > > >+#endif > > >+ ) > > >+ { > > > int policy = conf.policy; > > > if (ioctl (fd, SNDCTL_DSP_POLICY, &policy)) { > > > oss_logerr2 (errno, typ, "Failed to set timing policy to %d\n", > > >-- > > >1.6.6 > > > > And also I forgot to say this is stable-0.12 material too. > > You really should talk to the people who know what that means :) Oh sorry I should have guessed not all committers do merges to stable branches... Anthony? :) Greets, Juergen