summaryrefslogtreecommitdiff
path: root/emulators/open-vm-tools/files/patch-freebsd-9
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/open-vm-tools/files/patch-freebsd-9')
-rw-r--r--emulators/open-vm-tools/files/patch-freebsd-938
1 files changed, 38 insertions, 0 deletions
diff --git a/emulators/open-vm-tools/files/patch-freebsd-9 b/emulators/open-vm-tools/files/patch-freebsd-9
new file mode 100644
index 000000000000..4480b149f161
--- /dev/null
+++ b/emulators/open-vm-tools/files/patch-freebsd-9
@@ -0,0 +1,38 @@
+--- modules/freebsd/vmxnet/if_vxn.c.orig 2009-12-31 09:34:42.000000000 +0100
++++ modules/freebsd/vmxnet/if_vxn.c 2009-12-31 09:36:56.000000000 +0100
+@@ -134,7 +134,9 @@
+ static void vxn_init(void *);
+ static void vxn_start(struct ifnet *);
+ static int vxn_ioctl(struct ifnet *, u_long, caddr_t);
++#if __FreeBSD_version >= 900000
+ static void vxn_watchdog(struct ifnet *);
++#endif
+ static void vxn_intr (void *);
+
+ static void vxn_rx(vxn_softc_t *sc);
+@@ -383,7 +385,9 @@
+ ifp->if_ioctl = vxn_ioctl;
+ ifp->if_output = ether_output;
+ ifp->if_start = vxn_start;
++#if __FreeBSD_version >= 900000
+ ifp->if_watchdog = vxn_watchdog;
++#endif
+ ifp->if_init = vxn_init;
+ ifp->if_baudrate = 1000000000;
+ ifp->if_snd.ifq_maxlen = sc->vxn_num_tx_bufs;
+@@ -1018,6 +1022,7 @@
+ return error;
+ }
+
++#if __FreeBSD_version >= 800087
+ /*
+ *-----------------------------------------------------------------------------
+ * vxn_watchdog --
+@@ -1035,6 +1040,7 @@
+ {
+ printf("vxn%d: watchdog\n", VXN_IF_UNIT(ifp));
+ }
++#endif
+
+ /*
+ *-----------------------------------------------------------------------------