diff --git a/src/tcpconns.c b/src/tcpconns.c
index d68cd0968ca70a126dfd37d839f41ebe0be2fe77..78c337b7687ee3e7fcc3af4ee06e437513444b04 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 */