source: build-files/ports-overlay/emulators/open-vm-tools/files/patch-freebsd-9 @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 6 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 1.1 KB
Line 
1--- modules/freebsd/vmxnet/if_vxn.c.orig        2009-12-31 09:34:42.000000000 +0100
2+++ modules/freebsd/vmxnet/if_vxn.c     2009-12-31 09:36:56.000000000 +0100
3@@ -134,7 +134,9 @@
4 static void vxn_init(void *);
5 static void vxn_start(struct ifnet *);
6 static int vxn_ioctl(struct ifnet *, u_long, caddr_t);
7+#if __FreeBSD_version <= 900000
8 static void vxn_watchdog(struct ifnet *);
9+#endif
10 static void vxn_intr (void *);
11 
12 static void vxn_rx(vxn_softc_t *sc);
13@@ -383,7 +385,9 @@
14    ifp->if_ioctl = vxn_ioctl;
15    ifp->if_output = ether_output;
16    ifp->if_start = vxn_start;
17+#if __FreeBSD_version <= 900000
18    ifp->if_watchdog = vxn_watchdog;
19+#endif
20    ifp->if_init = vxn_init;
21    ifp->if_baudrate = 1000000000;
22    ifp->if_snd.ifq_maxlen = sc->vxn_num_tx_bufs;
23@@ -1018,6 +1022,7 @@
24    return error;
25 }
26 
27+#if __FreeBSD_version <= 900000
28 /*
29  *-----------------------------------------------------------------------------
30  * vxn_watchdog --
31@@ -1035,6 +1040,7 @@
32 {
33    printf("vxn%d: watchdog\n", VXN_IF_UNIT(ifp));
34 }
35+#endif
36 
37 /*
38  *-----------------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.