summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b65cef)
raw | patch | inline | side by side (parent: 2b65cef)
author | Doug MacEachern <dougm@hyperic.com> | |
Sat, 9 May 2009 00:35:03 +0000 (17:35 -0700) | ||
committer | Florian 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>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
configure.in | patch | blob | history | |
src/swap.c | patch | blob | history |
diff --git a/configure.in b/configure.in
index b6a4d0fda850c8fe3fd97c452f3b7cb21b6febd5..292bae44308ad5014b5551bfd822cb17dfc6cb4c 100644 (file)
--- a/configure.in
+++ b/configure.in
# 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>
diff --git a/src/swap.c b/src/swap.c
index 8c09e35f2f0246b43877b5fefd3d3062e6cd512f..11c9c57f898ca58877c2d907a8597e19d01727a8 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
#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