Changed `df.c' to prefer `statvfs' over `statfs', since apparently the latter is...
authorocto <octo>
Sun, 29 Jan 2006 22:04:58 +0000 (22:04 +0000)
committerocto <octo>
Sun, 29 Jan 2006 22:04:58 +0000 (22:04 +0000)
src/df.c

index 69dc299..8cc9f2e 100644 (file)
--- a/src/df.c
+++ b/src/df.c
 # define DF_HAVE_READ 0
 #endif
 
-#if HAVE_STATFS
-#define STATANYFS statfs
-#define BLOCKSIZE(s) (s).f_bsize
-
-#elif HAVE_STATVFS
-#define STATANYFS statvfs
-#define BLOCKSIZE(s) ((s).f_frsize ? (s).f_frsize : (s).f_bsize)
+#if HAVE_STATVFS
+# define STATANYFS statvfs
+# define BLOCKSIZE(s) ((s).f_frsize ? (s).f_frsize : (s).f_bsize)
+#elif HAVE_STATFS
+# define STATANYFS statfs
+# define BLOCKSIZE(s) (s).f_bsize
 #endif
 
 static char *filename_template = "df-%s.rrd";