Index: net-mgmt/netdata/files/patch-src_apps__plugin.c =================================================================== --- /dev/null +++ net-mgmt/netdata/files/patch-src_apps__plugin.c @@ -0,0 +1,14 @@ +--- src/apps_plugin.c.orig 2017-07-16 19:20:50 UTC ++++ src/apps_plugin.c +@@ -1572,7 +1572,11 @@ static inline int read_pid_file_descriptors(struct pid + break; + default: + /* print protocol number and socket address */ ++#if __FreeBSD_version < 1200031 + sprintf(fdsname, "socket: other: %d %s %s", fds->kf_sock_protocol, fds->kf_sa_local.__ss_pad1, fds->kf_sa_local.__ss_pad2); ++#else ++ sprintf(fdsname, "socket: other: %d %s %s", fds->kf_sock_protocol, fds->kf_un.kf_sock.kf_sa_local.__ss_pad1, fds->kf_un.kf_sock.kf_sa_local.__ss_pad2); ++#endif + } + break; + case KF_TYPE_PIPE: Index: net-mgmt/netdata/files/patch-src_freebsd__sysctl.c =================================================================== --- net-mgmt/netdata/files/patch-src_freebsd__sysctl.c +++ net-mgmt/netdata/files/patch-src_freebsd__sysctl.c @@ -1,6 +1,6 @@ ---- src/freebsd_sysctl.c.orig 2017-03-20 18:26:59 UTC +--- src/freebsd_sysctl.c.orig 2017-07-16 19:20:50 UTC +++ src/freebsd_sysctl.c -@@ -1,3 +1,8 @@ +@@ -1,5 +1,11 @@ +#if __FreeBSD__ < 11 || __FreeBSD_version < 1100000 +#define _IFI_OQDROPS +#define _IN_NET_RTSOCK_C @@ -8,4 +8,7 @@ + #include "common.h" ++#define _WANT_VMMETER #include + #include +