Index: sysutils/lsof/Makefile =================================================================== --- sysutils/lsof/Makefile +++ sysutils/lsof/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PORTNAME= lsof +PORTREVISION= 1 DISTVERSION= 4.90G PORTEPOCH= 8 CATEGORIES= sysutils Index: sysutils/lsof/files/patch-dialects_freebsd_dlsof.h =================================================================== --- /dev/null +++ sysutils/lsof/files/patch-dialects_freebsd_dlsof.h @@ -0,0 +1,10 @@ +--- dialects/freebsd/dlsof.h.orig 2016-09-22 20:02:53 UTC ++++ dialects/freebsd/dlsof.h +@@ -87,6 +87,7 @@ + #define boolean_t int + # endif /* defined(NEEDS_BOOLEAN_T) */ + ++#define KLD_MODULE + #include + + # if defined(HAS_VM_MEMATTR_T) Index: sysutils/lsof/files/patch-dialects_freebsd_dnode2.c =================================================================== --- /dev/null +++ sysutils/lsof/files/patch-dialects_freebsd_dnode2.c @@ -0,0 +1,11 @@ +--- dialects/freebsd/dnode2.c.orig 2016-09-22 20:02:53 UTC ++++ dialects/freebsd/dnode2.c +@@ -51,7 +51,7 @@ static char *rcsid = "$Id: dnode2.c,v 1. + */ + #define VOP_UNLOCK(vp, f) ((void)0) + # endif /* defined(__clang__) */ +- ++#define KLD_MODULE + #include + #undef _KERNEL +