summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--util/oslib-posix.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 7d2a34e036..5e66828e64 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 67c65893a4..f63146407f 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