Fix build on FreeBSD
PATCH 1/1 Fix build on FreeBSD
Fix a missing header required to build on recent FreeBSD.
Signed-off-by Nathan Whitehorn <[email protected]>
--- os-posix.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
os-posix.c +4 -0
@@ -45,6 +45,10 @@#include <sys/syscall.h> #endif +#ifdef __FreeBSD__ +#include <sys/sysctl.h> +#endif +#ifdef CONFIG_EVENTFD #include <sys/eventfd.h> #endif
--
1.7.9
Quoted 12 lines · Nathan Whitehorn
Fix a missing header required to build on recent FreeBSD.
Signed-off-by Nathan Whitehorn <[email protected]>---
os-posix.c | 4 ++++1 files changed, 4 insertions(+), 0 deletions(-)os-posix.c +0
-0
os-posix.c line 46
Quoted 2 lines
os-posix.c +0
-0@@ -45,6 +45,10 @@ #include <sys/syscall.h> #endif
These and the below CONFIG_EVENTFD stuff does not exist in QEMU git head. Please rebase.
Quoted 12 lines
os-posix.c +4
-1+#ifdef __FreeBSD__ +#include <sys/sysctl.h> +#endif + #ifdef CONFIG_EVENTFD #include <sys/eventfd.h> #endif --1.7.9
Quoted 8 lines · Blue Swirl
Quoted 7 lines · Nathan Whitehorn
Fix a missing header required to build on recent FreeBSD.
Signed-off-by Nathan Whitehorn <[email protected]>--- os-posix.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
Quoted 10 lines
os-posix.c line 46
Quoted 7 lines
os-posix.c +0
-0@@ -45,6 +45,10 @@#include <sys/syscall.h> #endif These and the below
CONFIG_EVENTFDstuff does not exist in QEMU git head. Please rebase.
Thanks, I'll prepare a new patch. Incidentally, the build has also been broken by the addition of qmp_guest_network_get_interfaces(), which depends on the Linux-only ioctl SIOCGIFHWADDR. -Nathan