Fix FreeBSD (10.x) build after 7dc9ae43
PATCH 1/1 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 <[email protected]>
--- configure | 2 ++ util/oslib-posix.c | 1 + 2 files changed, 3 insertions(+)
configure +2 -0
@@ -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" ;;
util/oslib-posix.c +1 -0
@@ -45,6 +45,7 @@#ifdef __FreeBSD__#include <sys/sysctl.h> +#include <sys/user.h> #include <libutil.h> #endif
Signature · 1 line
2.8.1
Quoted 8 lines · Ed Maste
Include
sys/user.hfor declaration of 'structkinfo_proc'. Add -lutil to qemu-ga link forkinfo_getproc.Signed-off-by Ed Maste <[email protected]>--- configure | 2 ++ util/oslib-posix.c | 1 + 2 files changed, 3 insertions(+)
Thanks, this looks relevant for QEMU 2.8-rc1 so I applied it to my staging tree:
https://github.com/stefanha/qemu/commits/staging
Stefan