aboutsummaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2013-04-25 13:59:41 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2013-04-26 13:23:52 +0200
commit6ea8430d98c48eb67e47d14dfe8c0fdb86413555 (patch)
treec98d2bd3754eb27180ef5bcb7c3d251fae34fac4 /bsd-user
parentb702d2aebeb6b1392f42262f537f70e6890233a7 (diff)
bsd-user: Track change in FreeBSD SYSCTL(9) types
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> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
index 18b43f1a2a..69e3466a08 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: