summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf3c0a7)
raw | patch | inline | side by side (parent: cf3c0a7)
author | Landry Breuil <landry@rhaalovely.net> | |
Mon, 17 Nov 2014 10:39:11 +0000 (11:39 +0100) | ||
committer | Landry Breuil <landry@rhaalovely.net> | |
Mon, 17 Nov 2014 10:39:11 +0000 (11:39 +0100) |
Needed on OpenBSD for struct vmtotal definition.
configure.ac | patch | blob | history | |
src/memory.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 734105001be542ff04070c42228abedb667f19aa..c6204cf233b693eb6aa0298d573e9fe25d29d17b 100644 (file)
--- a/configure.ac
+++ b/configure.ac
#endif
])
-AC_CHECK_HEADERS(pwd.h grp.h sys/un.h ctype.h limits.h xfs/xqm.h fs_info.h fshelp.h paths.h mntent.h mnttab.h sys/fstyp.h sys/fs_types.h sys/mntent.h sys/mnttab.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/vfstab.h kvm.h wordexp.h locale.h)
+AC_CHECK_HEADERS(pwd.h grp.h sys/un.h ctype.h limits.h xfs/xqm.h fs_info.h fshelp.h paths.h mntent.h mnttab.h sys/fstyp.h sys/fs_types.h sys/mntent.h sys/mnttab.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/vfstab.h sys/vmmeter.h kvm.h wordexp.h locale.h)
# For the dns plugin
AC_CHECK_HEADERS(arpa/nameser.h)
diff --git a/src/memory.c b/src/memory.c
index 0f5e1a00322da85bcb4666049f87e2eb11f4afd5..7e7fd8e5290ac4ebe1cfdb93ead5af574356e3f2 100644 (file)
--- a/src/memory.c
+++ b/src/memory.c
#ifdef HAVE_SYS_SYSCTL_H
# include <sys/sysctl.h>
#endif
+#ifdef HAVE_SYS_VMMETER_H
+# include <sys/vmmeter.h>
+#endif
#ifdef HAVE_MACH_KERN_RETURN_H
# include <mach/kern_return.h>