freebsd-ports/emulators/vmware3/files/fbsd6-1.patch
Mike Silbersack 37abdfe413 With a serious of very ugly hacks, make FreeBSD 6 support work again
for the vmware3 port.

Very little testing done, but at least it builds and starts a VM now.

Debugging helped along by: ssouhal & Devon O'Dell
2005-11-13 10:14:14 +00:00

24 lines
687 B
Diff

--- vmmon-only/freebsd/driver.c.orig Sun Nov 13 04:05:25 2005
+++ vmmon-only/freebsd/driver.c Sun Nov 13 04:06:41 2005
@@ -166,10 +166,11 @@
#if __FreeBSD_version >= 500104
#if __FreeBSD_version >= 502103
.d_version = D_VERSION,
+#else
+ .d_maj = CDEV_MAJOR
#endif
.d_open = FreeBSD_Driver_Open,
.d_name = DEVICE_NAME,
- .d_maj = CDEV_MAJOR
#else
/* open */ FreeBSD_Driver_Open,
/* close */ noclose,
@@ -400,7 +401,7 @@
fp->f_data = data;
fp->f_flag = flags & FMASK;
fp->f_ops = &vmmon_fileops;
- fp->f_type = DTYPE_VNODE;
+ fp->f_type = DTYPE_SOCKET;
FILEDESC_UNLOCK(p->p_fd);
#if __FreeBSD_version >= 501111