summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d89f6dc)
raw | patch | inline | side by side (parent: d89f6dc)
author | octo <octo> | |
Fri, 21 Apr 2006 14:40:18 +0000 (14:40 +0000) | ||
committer | octo <octo> | |
Fri, 21 Apr 2006 14:40:18 +0000 (14:40 +0000) |
Define `HAVE_LIBKSTAT' again if it's present..
configure.in | patch | blob | history | |
src/swap.c | patch | blob | history |
diff --git a/configure.in b/configure.in
index e6cb528c18338d27ab955587b531758e5c421f13..db5a4ceb7263fa14203c3bd52eb8ce9ab902d338 100644 (file)
--- a/configure.in
+++ b/configure.in
# For load module
AC_CHECK_HEADERS(sys/loadavg.h)
+# For the swap module
+AC_CHECK_HEADERS(sys/swap.h)
+
# For users module
AC_CHECK_HEADERS(utmp.h)
AC_CHECK_HEADERS(utmpx.h)
if test "x$with_kstat" = "xyes"
then
- AC_CHECK_LIB(kstat, kstat_open, [with_kstat="yes"], [with_kstat="no (libkstat not found)"])
+ AC_CHECK_LIB(kstat, kstat_open,, [with_kstat="no (libkstat not found)"])
fi
if test "x$with_kstat" = "xyes"
then
- AC_CHECK_LIB(devinfo, di_init, [with_devinfo="yes"], [with_devinfo="no (not found)"])
+ AC_CHECK_LIB(devinfo, di_init,, [with_devinfo="no (not found)"])
AC_CHECK_HEADERS(kstat.h,, [with_kstat="no (kstat.h not found)"])
fi
if test "x$with_kstat" = "xyes"
diff --git a/src/swap.c b/src/swap.c
index 5812b59c6f626465ec9ab38a017336baf26d403b..089150329bc3e59704e21e33b5344375b92cddb3 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
# define SWAP_HAVE_READ 0
#endif
-#ifdef KERNEL_SOLARIS
-#include <sys/swap.h>
-#endif /* KERNEL_SOLARIS */
+#if HAVE_SYS_SWAP_H
+# include <sys/swap.h>
+#endif
#undef MAX
#define MAX(x,y) ((x) > (y) ? (x) : (y))