mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- (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>
This commit is contained in:
parent
4e36828cbe
commit
531ab2bba4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=270963
16
emulators/qemu-devel/files/patch-bsd-user-syscall.c
Normal file
16
emulators/qemu-devel/files/patch-bsd-user-syscall.c
Normal file
@ -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:
|
Loading…
Reference in New Issue
Block a user