From: Doug MacEachern Date: Sat, 9 May 2009 00:35:03 +0000 (-0700) Subject: swap module: Include on Solaris. X-Git-Tag: collectd-4.5.4~3 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=168e74014bfd5ab70ffd8c40f877ec55879a8e92 swap module: Include on Solaris. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- diff --git a/configure.in b/configure.in index b6a4d0fd..292bae44 100644 --- a/configure.in +++ b/configure.in @@ -247,7 +247,7 @@ AC_CHECK_HEADERS(IOKit/ps/IOPowerSources.h, [], [], # For the swap module have_sys_swap_h="yes" -AC_CHECK_HEADERS(sys/swap.h, [], [have_sys_swap_h="no"], +AC_CHECK_HEADERS(sys/swap.h vm/anon.h, [], [have_sys_swap_h="no"], [ #if HAVE_SYS_TYPES_H # include diff --git a/src/swap.c b/src/swap.c index 8c09e35f..11c9c57f 100644 --- a/src/swap.c +++ b/src/swap.c @@ -26,6 +26,9 @@ #if HAVE_SYS_SWAP_H # include #endif +#if HAVE_VM_ANON_H +# include +#endif #if HAVE_SYS_PARAM_H # include #endif