Merge remote-tracking branch 'origin/collectd-4.10' into collectd-5.1
[collectd.git] / src / tcpconns.c
index 6a7e32d..3c8fc72 100644 (file)
 # 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 */