View | Details | Raw Unified | Return to bug 243122
Collapse All | Expand All

(-)b/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c (+17 lines)
Added Link Here
1
--- dialects/freebsd/dnode2.c.orig	2019-05-08 00:32:25.000000000 -0700
2
+++ dialects/freebsd/dnode2.c	2020-01-05 20:22:25.621138000 -0800
3
@@ -49,7 +49,13 @@
4
  *
5
  * Note: clang's complaint about VOP_FSYNC can't be avoided.
6
  */
7
-#define	VOP_UNLOCK(vp, f)	((void)0)
8
+#include <sys/param.h>
9
+#if __FreeBSD_version >= 1300074
10
+#define VOP_UNLOCK_FLAGS(vp, f) ((void)0)
11
+#define VOP_UNLOCK(vp)  ((void)0)
12
+#else
13
+#define VOP_UNLOCK(vp, f)       ((void)0)
14
+#endif
15
 # endif	/* defined(__clang__) */
16
 
17
 #define	KLD_MODULE		/* for ARM: prevent "ARM_NARCH is 0 " error */

Return to bug 243122