freebsd-ports/emulators/virtualbox-ose-kmod-legacy/files/patch-src-VBox-Runtime-r0drv-freebsd-the-freebsd-kernel.h
Bernhard Froehlich 598d8aac1e - Add VM_OBJECT patch from virtualbox-ose-kmod to use WLOCK/WUNLOCK
on 10-CURRENT.

Submitted by:	Gabor Pali <pgj@freebsd.org>
2013-05-13 09:59:01 +00:00

12 lines
422 B
C

--- src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h.orig 2012-12-19 20:51:59.000000000 +0100
+++ src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h 2013-05-10 12:40:19.000000000 +0200
@@ -50,6 +50,9 @@
#include <sys/unistd.h>
#include <sys/kthread.h>
#include <sys/lock.h>
+#if __FreeBSD_version >= 1000030
+#include <sys/rwlock.h>
+#endif
#include <sys/mutex.h>
#include <sys/sched.h>
#include <sys/callout.h>