swap module: Include <vm/anon.h> on Solaris.
authorDoug MacEachern <dougm@hyperic.com>
Sat, 9 May 2009 00:35:03 +0000 (17:35 -0700)
committerFlorian Forster <octo@huhu.verplant.org>
Sat, 9 May 2009 09:05:11 +0000 (11:05 +0200)
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
configure.in
src/swap.c

index b6a4d0f..292bae4 100644 (file)
@@ -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 <sys/types.h>
index 8c09e35..11c9c57 100644 (file)
@@ -26,6 +26,9 @@
 #if HAVE_SYS_SWAP_H
 # include <sys/swap.h>
 #endif
+#if HAVE_VM_ANON_H
+# include <vm/anon.h>
+#endif
 #if HAVE_SYS_PARAM_H
 #  include <sys/param.h>
 #endif