summaryrefslogtreecommitdiff
path: root/emulators/vmware3
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2003-02-11 21:42:52 +0000
committerAlexander Langer <alex@FreeBSD.org>2003-02-11 21:42:52 +0000
commitdde145560081531149a9967f2c1cb4d85f26dda1 (patch)
tree3cb9bd919792fe6d9c12d5581ec549b3bedeb750 /emulators/vmware3
parentFix this on 5.0. It isn't enough to "echo -n" to /compat/linux/dev/vmnet1, (diff)
Make this port build on CURRENT systems older than 2003/01/01 (abusing
OSVERSION of 5.0-RELEASE for this) - include sys/filedesc.h where required - define M_WAITOK to 0 until THEY found a solution.
Notes
Notes: svn path=/head/; revision=75317
Diffstat (limited to 'emulators/vmware3')
-rw-r--r--emulators/vmware3/Makefile4
-rw-r--r--emulators/vmware3/files/filedesc.patch32
-rw-r--r--emulators/vmware3/files/m_waitok.patch25
3 files changed, 61 insertions, 0 deletions
diff --git a/emulators/vmware3/Makefile b/emulators/vmware3/Makefile
index 15476727ac83..eac87f137c14 100644
--- a/emulators/vmware3/Makefile
+++ b/emulators/vmware3/Makefile
@@ -113,6 +113,10 @@ post-patch:
.if ${OSVERSION} >= 500038
cat ${FILESDIR}/fo_ioctl.patch | (cd ${WRKSRC} && patch) > /dev/null 2>&1
.endif
+.if ${OSVERSION} >= 500100
+ cat ${FILESDIR}/filedesc.patch | (cd ${WRKSRC} && patch)
+ cat ${FILESDIR}/m_waitok.patch | (cd ${WRKSRC} && patch) > /dev/null 2>&1
+.endif
setoptions:
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
diff --git a/emulators/vmware3/files/filedesc.patch b/emulators/vmware3/files/filedesc.patch
new file mode 100644
index 000000000000..8c625917bd9d
--- /dev/null
+++ b/emulators/vmware3/files/filedesc.patch
@@ -0,0 +1,32 @@
+--- vmnet-only/freebsd/vmnet_linux.c.orig Tue Feb 11 22:12:40 2003
++++ vmnet-only/freebsd/vmnet_linux.c Tue Feb 11 22:25:20 2003
+@@ -32,6 +32,7 @@
+ #include <sys/socket.h>
+ #include <sys/proc.h>
+ #include <sys/file.h>
++#include <sys/filedesc.h>
+
+ #include <net/if.h>
+
+--- vmmon-only/freebsd/driver.c.orig Tue Feb 11 22:12:39 2003
++++ vmmon-only/freebsd/driver.c Tue Feb 11 22:22:35 2003
+@@ -45,8 +45,9 @@
+ #include <sys/kernel.h>
+ #include <sys/module.h>
+ #include <sys/conf.h>
+ #include <sys/selinfo.h>
+ #include <sys/fcntl.h>
++#include <sys/filedesc.h>
+ #include <sys/malloc.h>
+ #include <sys/proc.h>
+ #include <sys/ioccom.h>
+--- vmmon-only/freebsd/linux_emu.c.orig Tue Feb 11 22:12:40 2003
++++ vmmon-only/freebsd/linux_emu.c Tue Feb 11 22:24:42 2003
+@@ -36,6 +36,7 @@
+ #include <sys/disklabel.h>
+ #include <sys/cdio.h>
+ #include <sys/file.h>
++#include <sys/filedesc.h>
+ #include <sys/selinfo.h>
+
+ #include <sys/fdcio.h>
diff --git a/emulators/vmware3/files/m_waitok.patch b/emulators/vmware3/files/m_waitok.patch
new file mode 100644
index 000000000000..3c234edafe33
--- /dev/null
+++ b/emulators/vmware3/files/m_waitok.patch
@@ -0,0 +1,25 @@
+--- vmmon-only/freebsd/driver.c.orig Tue Feb 11 22:12:39 2003
++++ vmmon-only/freebsd/driver.c Tue Feb 11 22:22:35 2003
+@@ -91,6 +92,10 @@
+ typedef void driver_intr_t(void*);
+ #endif
+
++#ifndef M_WAITOK
++#define M_WAITOK 0x0000
++#endif
++
+ #ifdef SUPPORT_PASSTHROUGH
+ #include "passthrough.h" // _driver_ version of passthrough.h
+ #endif
+--- vmmon-only/freebsd/hostif.c.orig Tue Feb 11 22:12:40 2003
++++ vmmon-only/freebsd/hostif.c Tue Feb 11 22:22:15 2003
+@@ -100,6 +100,9 @@
+
+ #define HOST_ISTRACKED_PFN(_vm, _pfn, _vpn) (PhysTrack_Test(_vm->physTracker, _pfn))
+
++#ifndef M_WAITOK
++#define M_WAITOK 0x0000
++#endif
+
+ static
+ int host_lock_ppn(PPN ppn)