qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: Juergen Lock <nox@jelal.kn-bremen.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix build if OSS_GETVERSION is not defined
Date: Sat, 9 Jan 2010 00:33:44 +0300 (MSK)	[thread overview]
Message-ID: <Pine.LNX.4.64.1001090032300.2202@linmac.oyster.ru> (raw)
In-Reply-To: <20100108194637.GA36023@triton8.kn-bremen.de>

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..

> 
> >+#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 :)

>  And thanx for committing!
> 	Juergen
> 

-- 
mailto:av1474@comtv.ru

  reply	other threads:[~2010-01-08 21:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07 22:23 [Qemu-devel] [PATCH] Fix build if OSS_GETVERSION is not defined Juergen Lock
2010-01-08  8:27 ` malc
2010-01-08 19:46   ` Juergen Lock
2010-01-08 21:33     ` malc [this message]
2010-01-09 13:45       ` Juergen Lock
2010-01-09 14:03         ` Andreas Färber
2010-01-09 21:08           ` Juergen Lock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.1001090032300.2202@linmac.oyster.ru \
    --to=av1474@comtv.ru \
    --cc=nox@jelal.kn-bremen.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).