[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen master] Fix FreeBSD (10.x) build after 7dc9ae43



commit a7764f1548ef9946af30a8f96be9cef10761f0c1
Author:     Ed Maste <emaste@xxxxxxxxxxx>
AuthorDate: Mon Nov 21 20:32:45 2016 -0500
Commit:     Stefan Hajnoczi <stefanha@xxxxxxxxxx>
CommitDate: Tue Nov 22 10:56:01 2016 +0000

    Fix FreeBSD (10.x) build after 7dc9ae43
    
    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@xxxxxxxxxxx>
    Message-id: 1479778365-11315-1-git-send-email-emaste@xxxxxxxxxxx
    Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
---
 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
 
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.