qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix FreeBSD (10.x) build after 7dc9ae43
@ 2016-11-22  1:32 Ed Maste
  2016-11-22 10:57 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Ed Maste @ 2016-11-22  1:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Ed Maste

Include sys/user.h for declaration of 'struct kinfo_proc'.
Add -lutil to qemu-ga link for kinfo_getproc.

Signed-off-by: Ed Maste <emaste@freebsd.org>
---
 configure          | 2 ++
 util/oslib-posix.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/configure b/configure
index 7d2a34e..5e66828 100755
--- a/configure
+++ b/configure
@@ -582,6 +582,8 @@ FreeBSD)
   audio_possible_drivers="oss sdl pa"
   # needed for kinfo_getvmmap(3) in libutil.h
   LIBS="-lutil $LIBS"
+  # needed for kinfo_getproc
+  libs_qga="-lutil $libs_qga"
   netmap=""  # enable netmap autodetect
   HOST_VARIANT_DIR="freebsd"
 ;;
diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index 67c6589..f631464 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -45,6 +45,7 @@
 
 #ifdef __FreeBSD__
 #include <sys/sysctl.h>
+#include <sys/user.h>
 #include <libutil.h>
 #endif
 
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-22 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-22  1:32 [Qemu-devel] [PATCH] Fix FreeBSD (10.x) build after 7dc9ae43 Ed Maste
2016-11-22 10:57 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).