From dde145560081531149a9967f2c1cb4d85f26dda1 Mon Sep 17 00:00:00 2001 From: Alexander Langer Date: Tue, 11 Feb 2003 21:42:52 +0000 Subject: 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. --- emulators/vmware2/Makefile | 4 ++++ emulators/vmware2/files/filedesc.patch | 32 ++++++++++++++++++++++++++++++++ emulators/vmware2/files/m_waitok.patch | 25 +++++++++++++++++++++++++ emulators/vmware3/Makefile | 4 ++++ emulators/vmware3/files/filedesc.patch | 32 ++++++++++++++++++++++++++++++++ emulators/vmware3/files/m_waitok.patch | 25 +++++++++++++++++++++++++ 6 files changed, 122 insertions(+) create mode 100644 emulators/vmware2/files/filedesc.patch create mode 100644 emulators/vmware2/files/m_waitok.patch create mode 100644 emulators/vmware3/files/filedesc.patch create mode 100644 emulators/vmware3/files/m_waitok.patch (limited to 'emulators') diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile index 15476727ac83..eac87f137c14 100644 --- a/emulators/vmware2/Makefile +++ b/emulators/vmware2/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/vmware2/files/filedesc.patch b/emulators/vmware2/files/filedesc.patch new file mode 100644 index 000000000000..8c625917bd9d --- /dev/null +++ b/emulators/vmware2/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 + #include + #include ++#include + + #include + +--- 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 + #include + #include + #include + #include ++#include + #include + #include + #include +--- 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 + #include + #include ++#include + #include + + #include diff --git a/emulators/vmware2/files/m_waitok.patch b/emulators/vmware2/files/m_waitok.patch new file mode 100644 index 000000000000..3c234edafe33 --- /dev/null +++ b/emulators/vmware2/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) 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 + #include + #include ++#include + + #include + +--- 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 + #include + #include + #include + #include ++#include + #include + #include + #include +--- 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 + #include + #include ++#include + #include + + #include 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) -- cgit v1.2.3