aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
Diffstat (limited to 'emulators')
-rw-r--r--emulators/vmware2/Makefile4
-rw-r--r--emulators/vmware3/Makefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile
index dfb194f3006e..65c2ec470e3f 100644
--- a/emulators/vmware2/Makefile
+++ b/emulators/vmware2/Makefile
@@ -98,6 +98,10 @@ post-patch:
${WRKSRC}/vmmon-only/freebsd/*.c
.endif
cd ${WRKSRC}/vmmon-only/freebsd && ${TOUCH} bus_if.h device_if.h
+.if ${OSVERSION} >= 500018
+ ${PERL} -i -pe 's,<sys/lock\.h>,<sys/mutex.h>,' \
+ ${WRKSRC}/vmmon-only/freebsd/*.c
+.endif
setoptions:
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
diff --git a/emulators/vmware3/Makefile b/emulators/vmware3/Makefile
index dfb194f3006e..65c2ec470e3f 100644
--- a/emulators/vmware3/Makefile
+++ b/emulators/vmware3/Makefile
@@ -98,6 +98,10 @@ post-patch:
${WRKSRC}/vmmon-only/freebsd/*.c
.endif
cd ${WRKSRC}/vmmon-only/freebsd && ${TOUCH} bus_if.h device_if.h
+.if ${OSVERSION} >= 500018
+ ${PERL} -i -pe 's,<sys/lock\.h>,<sys/mutex.h>,' \
+ ${WRKSRC}/vmmon-only/freebsd/*.c
+.endif
setoptions:
${SED} -e 's;@@PREFIX@@;${PREFIX};' \