From cb2155af369ed84a6badba6d3ebab3e5ae37c245 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 18 Mar 2012 09:14:54 +0100 Subject: [PATCH] tcpconns plugin: Include rather than . It appears that is being deprecated / moved. This hopefully fixes Debian bug #664429. --- configure.in | 1 + src/tcpconns.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 02a6361b..1dc23bf2 100644 --- a/configure.in +++ b/configure.in @@ -1234,6 +1234,7 @@ AM_CONDITIONAL(BUILD_WITH_LIBKVM_GETSWAPINFO, test "x$with_kvm_getswapinfo" = "x AC_CHECK_LIB(kvm, kvm_nlist, [with_kvm_nlist="yes"], [with_kvm_nlist="no"]) if test "x$with_kvm_nlist" = "xyes" then + AC_CHECK_HEADERS(bsd/nlist.h nlist.h) AC_DEFINE(HAVE_LIBKVM_NLIST, 1, [Define to 1 if you have the 'kvm' library with the 'kvm_nlist' symbol (-lkvm)]) with_libkvm="yes" diff --git a/src/tcpconns.c b/src/tcpconns.c index d68cd096..78c337b7 100644 --- a/src/tcpconns.c +++ b/src/tcpconns.c @@ -116,7 +116,11 @@ # include # include # include -# include +# if !defined(HAVE_BSD_NLIST_H) || !HAVE_BSD_NLIST_H +# include +# else /* HAVE_BSD_NLIST_H */ +# include +# endif # include #endif /* HAVE_LIBKVM_NLIST */ -- 2.30.2