aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2011-03-16 02:30:02 +0800
committernox <nox@FreeBSD.org>2011-03-16 02:30:02 +0800
commit3167d3a453023a01bb02c36bb8cec8000936fc7a (patch)
treef153d43cceecda43ef4d741c692a33ccd4eb30c2 /emulators
parent34bd07ff0f37a480912cfc085aabf985dfdc5481 (diff)
downloadfreebsd-ports-gnome-3167d3a453023a01bb02c36bb8cec8000936fc7a.tar.gz
freebsd-ports-gnome-3167d3a453023a01bb02c36bb8cec8000936fc7a.tar.zst
freebsd-ports-gnome-3167d3a453023a01bb02c36bb8cec8000936fc7a.zip
- (Attempt to) fix build on head.
- No PORTREVISION bump since this is a build fix. PR: ports/155558 Submitted by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu-devel/files/patch-bsd-user-syscall.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-bsd-user-syscall.c b/emulators/qemu-devel/files/patch-bsd-user-syscall.c
new file mode 100644
index 000000000000..7bdda67c3c31
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-bsd-user-syscall.c
@@ -0,0 +1,16 @@
+diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
+index eb1cdf2..2c32637 100644
+--- a/bsd-user/syscall.c
++++ b/bsd-user/syscall.c
+@@ -212,7 +212,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: