]> git.proxmox.com Git - mirror_qemu.git/commitdiff
bsd-user: Track change in FreeBSD SYSCTL(9) types
authorEd Maste <emaste@freebsd.org>
Thu, 25 Apr 2013 17:59:41 +0000 (13:59 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 26 Apr 2013 11:23:52 +0000 (13:23 +0200)
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>
bsd-user/syscall.c

index 18b43f1a2afc28fad6edde758998f0566bd449cc..69e3466a086f44ce657a64559e16fdea4c678583 100644 (file)
@@ -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: