From 6deaf98a8b738a9e24ad95a18e7bb98a3000c7cb Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 1 Mar 2018 08:55:35 -0500 Subject: [PATCH] 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. Backports commit a7764f1548ef9946af30a8f96be9cef10761f0c1 from qemu --- qemu/util/oslib-posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/util/oslib-posix.c b/qemu/util/oslib-posix.c index c02556fa..8457fab9 100644 --- a/qemu/util/oslib-posix.c +++ b/qemu/util/oslib-posix.c @@ -59,6 +59,7 @@ #ifdef __FreeBSD__ #include +#include #endif #include "qemu/mmap-alloc.h"