summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/collectors/apps.plugin/apps_proc_pid_fd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/collectors/apps.plugin/apps_proc_pid_fd.c b/src/collectors/apps.plugin/apps_proc_pid_fd.c
index 44c4274651..519b0794da 100644
--- a/src/collectors/apps.plugin/apps_proc_pid_fd.c
+++ b/src/collectors/apps.plugin/apps_proc_pid_fd.c
@@ -551,9 +551,11 @@ static bool read_pid_file_descriptors_per_os(struct pid_stat *p, void *ptr) {
switch (fds->kf_sock_domain) {
case AF_INET:
case AF_INET6:
+#if __FreeBSD_version < 1400074
if (fds->kf_sock_protocol == IPPROTO_TCP)
sprintf(fdsname, "socket: %d %lx", fds->kf_sock_protocol, fds->kf_un.kf_sock.kf_sock_inpcb);
else
+#endif
sprintf(fdsname, "socket: %d %lx", fds->kf_sock_protocol, fds->kf_un.kf_sock.kf_sock_pcb);
break;
case AF_UNIX: