Index: head/sysutils/lsof/Makefile =================================================================== --- head/sysutils/lsof/Makefile +++ head/sysutils/lsof/Makefile @@ -3,6 +3,7 @@ PORTNAME= lsof DISTVERSION= 4.90G +PORTREVISION= 1 PORTEPOCH= 8 CATEGORIES= sysutils MASTER_SITES= http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/ \ Index: head/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h =================================================================== --- head/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h +++ head/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: head/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c =================================================================== --- head/sysutils/lsof/files/patch-dialects_freebsd_dnode2.c +++ head/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 +