From 168e74014bfd5ab70ffd8c40f877ec55879a8e92 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 8 May 2009 17:35:03 -0700 Subject: [PATCH] swap module: Include on Solaris. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- configure.in | 2 +- src/swap.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2