Skip to content

Commit

Permalink
bsd-user: Track change in FreeBSD SYSCTL(9) types
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
emaste authored and stefanhaRH committed Apr 26, 2013
1 parent b702d2a commit 6ea8430
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bsd-user/syscall.c
Expand Up @@ -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:
Expand Down

0 comments on commit 6ea8430

Please sign in to comment.