source: build-files/ports-overlay/emulators/open-vm-tools/files/patch-net_compat.h @ 1e102bd

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

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

  • Property mode set to 100644
File size: 759 bytes
Line 
1--- modules/freebsd/vmxnet/net_compat.h.orig    2011-09-21 14:25:15.000000000 -0400
2+++ modules/freebsd/vmxnet/net_compat.h 2012-06-28 17:05:44.638526644 -0400
3@@ -170,9 +170,12 @@
4 #if __FreeBSD_version < 505000
5 #   define VXN_IF_ADDR_LOCK(_ifp)
6 #   define VXN_IF_ADDR_UNLOCK(_ifp)
7+#elif __FreeBSD_version < 1000000
8+#  define VXN_IF_ADDR_LOCK(_ifp)           IF_ADDR_LOCK((_ifp))
9+#  define VXN_IF_ADDR_UNLOCK(_ifp)         IF_ADDR_UNLOCK((_ifp))
10 #else
11-#   define VXN_IF_ADDR_LOCK(_ifp)       IF_ADDR_LOCK((_ifp))
12-#   define VXN_IF_ADDR_UNLOCK(_ifp)     IF_ADDR_UNLOCK((_ifp))
13+#  define VXN_IF_ADDR_LOCK(_ifp)           IF_ADDR_WLOCK((_ifp))
14+#  define VXN_IF_ADDR_UNLOCK(_ifp)         IF_ADDR_WUNLOCK((_ifp))
15 #endif
16 
17 #endif /* _VXN_NET_COMPAT_H_ */
Note: See TracBrowser for help on using the repository browser.