From: Ed Maste <emaste@freebsd.org>
To: qemu-trivial@nongnu.org
Subject: [Qemu-trivial] [PATCH] Track change in FreeBSD SYSCTL(9) types
Date: Thu, 25 Apr 2013 13:59:41 -0400 [thread overview]
Message-ID: <1366912781-11766-1-git-send-email-emaste@freebsd.org> (raw)
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
next reply other threads:[~2013-04-25 18:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-25 17:59 Ed Maste [this message]
2013-04-26 10:57 ` [Qemu-trivial] [PATCH] Track change in FreeBSD SYSCTL(9) types Stefan Hajnoczi
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=1366912781-11766-1-git-send-email-emaste@freebsd.org \
--to=emaste@freebsd.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).