Index: head/sysutils/lsof/Makefile =================================================================== --- head/sysutils/lsof/Makefile +++ head/sysutils/lsof/Makefile @@ -3,6 +3,7 @@ PORTNAME= lsof DISTVERSION= 4.93.2 +PORTREVISION= 1 PORTEPOCH= 8 CATEGORIES= sysutils 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,21 @@ +Index: sysutils/lsof/files/patch-dialects-freebsd-dlsof.h +=================================================================== +--- /dev/null ++++ sysutils/lsof/files/patch-dialects-freebsd-dlsof.h +@@ -0,0 +1,16 @@ ++--- dialects/freebsd/dlsof.h.orig 2019-05-08 07:32:25 UTC +++++ dialects/freebsd/dlsof.h ++@@ -45,6 +45,13 @@ ++ #include ++ #include ++ +++#if FREEBSDV>=13000 +++/* This header is a huge mess. Please don't support EOL FreeBSD releases. */ +++#define _KERNEL 1 +++#include +++#undef _KERNEL +++#endif /* FREEBSDV>=13000 */ +++ ++ # if FREEBSDV>=4000 ++ # if FREEBSDV>=5000 ++ # if FREEBSDV<6020