diff options
author | Ed Maste <emaste@freebsd.org> | 2016-11-21 20:32:45 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2016-11-22 10:56:01 +0000 |
commit | a7764f1548ef9946af30a8f96be9cef10761f0c1 (patch) | |
tree | ac3523345e85ed882e54f5ead831aff104029dc7 /util | |
parent | 06bf33cfe708e9ecaeb3c3d3bb80590991141800 (diff) | |
download | qemu-a7764f1548ef9946af30a8f96be9cef10761f0c1.zip qemu-a7764f1548ef9946af30a8f96be9cef10761f0c1.tar.gz qemu-a7764f1548ef9946af30a8f96be9cef10761f0c1.tar.bz2 |
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@freebsd.org>
Message-id: 1479778365-11315-1-git-send-email-emaste@freebsd.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/oslib-posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |