diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-09-03 00:47:39 +0800 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-09-03 00:47:39 +0800 |
commit | 7c643485c30144c2b83023733ebcf3b2520f4805 (patch) | |
tree | 58e67fb07aaa4d2c216286da1b855e43b68ecb6d /emulators/vmware2 | |
parent | 9507ff71edff0939650a6bfb0e642cd3dc7bcc7b (diff) | |
download | freebsd-ports-gnome-7c643485c30144c2b83023733ebcf3b2520f4805.tar.gz freebsd-ports-gnome-7c643485c30144c2b83023733ebcf3b2520f4805.tar.zst freebsd-ports-gnome-7c643485c30144c2b83023733ebcf3b2520f4805.zip |
Make vmware2 compile on -current again.
Submitted by: Mark Santcroos <marks@ripe.net>
Approved by: joe
Diffstat (limited to 'emulators/vmware2')
-rw-r--r-- | emulators/vmware2/Makefile | 3 | ||||
-rw-r--r-- | emulators/vmware2/files/fo_ioctl.patch | 67 |
2 files changed, 70 insertions, 0 deletions
diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile index 012e592562fb..15476727ac83 100644 --- a/emulators/vmware2/Makefile +++ b/emulators/vmware2/Makefile @@ -110,6 +110,9 @@ post-patch: ${WRKSRC}/vmware-distrib/vmmon-only/freebsd/*.c .endif cat ${FILESDIR}/kmoddeps.patch | (cd ${WRKSRC} && patch) > /dev/null 2>&1 +.if ${OSVERSION} >= 500038 + cat ${FILESDIR}/fo_ioctl.patch | (cd ${WRKSRC} && patch) > /dev/null 2>&1 +.endif setoptions: ${SED} -e 's;@@PREFIX@@;${PREFIX};' \ diff --git a/emulators/vmware2/files/fo_ioctl.patch b/emulators/vmware2/files/fo_ioctl.patch new file mode 100644 index 000000000000..6cfde2c4c06f --- /dev/null +++ b/emulators/vmware2/files/fo_ioctl.patch @@ -0,0 +1,67 @@ +--- vmmon-only/freebsd/linux_emu.c Tue Aug 20 12:40:02 2002 ++++ vmmon-only/freebsd/linux_emu.c Tue Aug 20 12:42:23 2002 +@@ -306,7 +306,7 @@ + struct linux_floppy_struct fls; + struct fd_type fdt; + +- if ((error = fo_ioctl(fp, FD_GTYPE, (caddr_t)&fdt, td)) != 0) ++ if ((error = fo_ioctl(fp, FD_GTYPE, (caddr_t)&fdt, td->td_ucred, td)) != 0) + return error; + bzero(&fls, sizeof(fls)); + +@@ -330,7 +330,7 @@ + struct linux_hd_geometry drive_geo; + struct disklabel dl; + +- if ((error = fo_ioctl(fp, DIOCGDINFO, (caddr_t)&dl, td)) != 0) ++ if ((error = fo_ioctl(fp, DIOCGDINFO, (caddr_t)&dl, td->td_ucred, td)) != 0) + return error; + + bzero(&drive_geo, sizeof(drive_geo)); +@@ -351,7 +351,7 @@ + struct linux_hd_driveid driveid; + unsigned int capacity; + +- if ((error = fo_ioctl(fp, DIOCGDINFO, (caddr_t)&dl, td)) != 0) ++ if ((error = fo_ioctl(fp, DIOCGDINFO, (caddr_t)&dl, td->td_ucred, td)) != 0) + return error; + + bzero(&driveid, sizeof(driveid)); +@@ -388,7 +388,7 @@ + struct ioc_vol bsd_vol; + struct linux_cdrom_volctrl linux_vol; + +- if ((error = fo_ioctl(fp, CDIOCGETVOL, (caddr_t)&bsd_vol, td)) != 0) ++ if ((error = fo_ioctl(fp, CDIOCGETVOL, (caddr_t)&bsd_vol, td->td_ucred, td)) != 0) + return error; + + linux_vol.channel0 = bsd_vol.vol[0]; +@@ -411,7 +411,7 @@ + if ((error = copyin(muls, &ms, sizeof(ms))) != 0) + return error; + +- if ((error = fo_ioctl(fp, CDIOREADTOCHEADER, (caddr_t)&h, td)) != 0) ++ if ((error = fo_ioctl(fp, CDIOREADTOCHEADER, (caddr_t)&h, td->td_ucred, td)) != 0) + return error; + + bzero(&t, sizeof(t)); +@@ -419,7 +419,7 @@ + t.address_format = ms.addr_format ; /* BSD and LINUX formats equal */ + t.track = 0; /* get content from the first track */ + +- if ((error = fo_ioctl(fp, CDIOREADTOCENTRY, (caddr_t)&t, td)) != 0) ++ if ((error = fo_ioctl(fp, CDIOREADTOCENTRY, (caddr_t)&t, td->td_ucred, td)) != 0) + return error; + + bsd_to_linux_msf_lba(ms.addr_format, &t.entry.addr, &ms.addr); +--- vmnet-only/freebsd/vmnet_linux.c Tue Aug 20 12:40:02 2002 ++++ vmnet-only/freebsd/vmnet_linux.c Tue Aug 20 12:42:59 2002 +@@ -90,7 +90,7 @@ + + switch (macAddr.version) { + case 1: +- error = fo_ioctl(fp, SIOCSIFADDR, (caddr_t)macAddr.addr, td); ++ error = fo_ioctl(fp, SIOCSIFADDR, (caddr_t)macAddr.addr, td->td_ucred, td); + DEB(printf("Get ethernet address: %6D\n", macAddr.addr, ":")); + break; + default: |