diff --git a/src/tcpconns.c b/src/tcpconns.c
index 6a7e32d72007e216ff739bd491e6e34a6abefe11..3c8fc7285e2621c57fa5f3779d08df70e8ed7179 100644 (file)
--- a/src/tcpconns.c
+++ b/src/tcpconns.c
# include <netinet/tcp_var.h>
# include <netdb.h>
# include <arpa/inet.h>
-# include <nlist.h>
+# if !defined(HAVE_BSD_NLIST_H) || !HAVE_BSD_NLIST_H
+# include <nlist.h>
+# else /* HAVE_BSD_NLIST_H */
+# include <bsd/nlist.h>
+# endif
# include <kvm.h>
/* #endif HAVE_LIBKVM_NLIST */