author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 26 Mar 2016 18:11:32 +0000 (19:11 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 26 Mar 2016 18:11:32 +0000 (19:11 +0100) |
1 | 2 | |||
---|---|---|---|---|
configure.ac | patch | | diff1 | | diff2 | | blob | history |
src/utils_mount.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc configure.ac
index 9112a91f82b6dde214470544e96377c405ab3d68,fd2e25cb622ce4bbe68033de230097dc53ffc795..dc9d324ffa9a231863dbc3eadcff47bfdd8240da
--- 1/configure.ac
--- 2/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 sys/vmmeter.h kvm.h wordexp.h locale.h)
-AC_CHECK_HEADERS(pwd.h grp.h sys/un.h ctype.h limits.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)
++AC_CHECK_HEADERS(pwd.h grp.h sys/un.h ctype.h limits.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)
+
+ AC_CHECK_HEADERS([xfs/xqm.h], [], [],
+ [
+ #define _GNU_SOURCE
+ ])
# For the dns plugin
AC_CHECK_HEADERS(arpa/nameser.h)
diff --cc src/utils_mount.c
index 4ec5fb79e8bcd8bbd8e4b68334309796004f2b19,d303677d4e6b0f88b2153fcd85b17a5ab50b7f3a..da53b980eee91537c9aecdbfef118b835bcea8d1
--- 1/src/utils_mount.c
--- 2/src/utils_mount.c
+++ b/src/utils_mount.c
#define XFS_SUPER_MAGIC2_STR "BSFX"
#endif
-#include "common.h"
-#include "plugin.h"
++#include "collectd.h"
+ #include "utils_mount.h"
+
++#include "common.h" /* sstrncpy() et alii */
++#include "plugin.h" /* ERROR() macro */
++
++
#if HAVE_GETVFSSTAT
# if HAVE_SYS_TYPES_H
# include <sys/types.h>