summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJuergen Lock2010-03-25 22:32:16 +0100
committerBlue Swirl2010-03-30 19:45:10 +0200
commitf01576f18569fac675671a81bf931901050c3a73 (patch)
treeb4510ebcd89d56ba7c148077085272b7be995d6c /configure
parentFix bsd-user qemu_vmalloc() host page protection code (diff)
downloadqemu-f01576f18569fac675671a81bf931901050c3a73.tar.gz
qemu-f01576f18569fac675671a81bf931901050c3a73.tar.xz
qemu-f01576f18569fac675671a81bf931901050c3a73.zip
Get bsd-user host page protection code working on FreeBSD hosts
Use kinfo_getvmmap(3) on FeeBSD >= 7.x and /compat/linux/proc on older FreeBSD. (kinfo_getvmmap is preferred since /compat/linux/proc is usually only mounted on hosts also using the Linuxolator.) This patch is a bit hacky because the includes needed for kinfo_getvmmap conflict with other definitions in exec.c by default so I had to `trick around' a little, but I built the result in FreeBSD 6.4-stable and 7.2-stable tbs and on 8-stable on the host so the hacks at least should be stable. (If this is a problem maybe we could also move the kinfo_getvmmap invocations into a seperate source file but that would be more work...) Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 664c920b1e..30c6753eb6 100755
--- a/configure
+++ b/configure
@@ -332,6 +332,8 @@ FreeBSD)
make="gmake"
audio_drv_list="oss"
audio_possible_drivers="oss sdl esd pa"
+ # needed for kinfo_getvmmap(3) in libutil.h
+ LIBS="-lutil $LIBS"
;;
DragonFly)
bsd="yes"