Skip to contentSkip to conversation

Fix build on FreeBSD

PATCH In review Nathan Whitehorn 2 participants 3 messages Mar 3, 2012 – Mar 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build on FreeBSD

Fix a missing header required to build on recent FreeBSD.

---
 os-posix.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
os-posix.c +4 -0
index dbf3b24..83b14a0 100644
@@ -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

#1 lore raw
Quoted 12 lines · Nathan Whitehorn

Fix a missing header required to build on recent FreeBSD.

---
 os-posix.c |    4 ++++

 1 files changed, 4 insertions(+), 0 deletions(-)
os-posix.c +0 -0
index dbf3b24..83b14a0 100644

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

#2 lore raw
Quoted 8 lines · Blue Swirl
Quoted 7 lines · Nathan Whitehorn

Fix a missing header required to build on recent FreeBSD.

---
 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
index dbf3b24..83b14a0 100644
@@ -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.

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