to read the old file, but not to read the new one.
* The `hddtemp' plugin can now be configured to connect to another
address and/or port than localhost.
+ * The `df' plugin now prefers `statvfs' over `statfs'.
2006-01-24, Version 3.6.2
* Due to a bug in the configfile handling collectd wouldn't start in
#endif
#if HAVE_STATVFS
+# if HAVE_SYS_STATVFS_H
+# include <sys/statvfs.h>
+# endif
# define STATANYFS statvfs
# define BLOCKSIZE(s) ((s).f_frsize ? (s).f_frsize : (s).f_bsize)
#elif HAVE_STATFS
+# if HAVE_SYS_STATFS_H
+# include <sys/statfs.h>
+# endif
# define STATANYFS statfs
# define BLOCKSIZE(s) (s).f_bsize
#endif
static void df_read (void)
{
- struct STATANYFS statbuf;
+#if HAVE_STATVFS
+ struct statvfs statbuf;
+#elif HAVE_STATFS
+ struct statfs statbuf;
+#endif
+ /* struct STATANYFS statbuf; */
cu_mount_t *mnt_list;
cu_mount_t *mnt_ptr;