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
This commit is contained in:
Ed Maste 2018-03-01 08:55:35 -05:00 committed by Lioncash
parent 57533d1adc
commit 6deaf98a8b
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -59,6 +59,7 @@
#ifdef __FreeBSD__
#include <sys/sysctl.h>
#include <sys/user.h>
#endif
#include "qemu/mmap-alloc.h"