qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Ed Maste <emaste@freebsd.org>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] Track change in FreeBSD SYSCTL(9) types
Date: Fri, 26 Apr 2013 12:57:14 +0200	[thread overview]
Message-ID: <20130426105714.GG22315@stefanha-thinkpad.hitronhub.home> (raw)
In-Reply-To: <1366912781-11766-1-git-send-email-emaste@freebsd.org>

On Thu, Apr 25, 2013 at 01:59:41PM -0400, Ed Maste wrote:

CCing qemu-devel@nongnu.org.

> Originally from Garrett Cooper in FreeBSD PR ports/155558
> http://www.freebsd.org/cgi/query-pr.cgi?pr=155558
> 
> Signed-off-by: Ed Maste <emaste@freebsd.org>
> ---
>  bsd-user/syscall.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
> index 18b43f1..69e3466 100644
> --- a/bsd-user/syscall.c
> +++ b/bsd-user/syscall.c
> @@ -211,7 +211,11 @@ static int sysctl_oldcvt(void *holdp, size_t holdlen, uint32_t kind)
>          *(uint64_t *)holdp = tswap64(*(unsigned long *)holdp);
>          break;
>  #endif
> +#if !defined(__FreeBSD_version) || __FreeBSD_version < 900031
>      case CTLTYPE_QUAD:
> +#else
> +    case CTLTYPE_U64:
> +#endif
>          *(uint64_t *)holdp = tswap64(*(uint64_t *)holdp);
>          break;
>      case CTLTYPE_STRING:
> -- 
> 1.7.11.5
> 
> 


  reply	other threads:[~2013-04-26 10:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25 17:59 [Qemu-trivial] [PATCH] Track change in FreeBSD SYSCTL(9) types Ed Maste
2013-04-26 10:57 ` Stefan Hajnoczi [this message]
2013-04-26 11:09 ` Stefan Hajnoczi
2013-04-26 17:13 ` Patrick Welche

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=20130426105714.GG22315@stefanha-thinkpad.hitronhub.home \
    --to=stefanha@gmail.com \
    --cc=emaste@freebsd.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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).