summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4cfc5b7)
raw | patch | inline | side by side (parent: 4cfc5b7)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 28 Feb 2016 17:29:41 +0000 (18:29 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 28 Feb 2016 17:29:41 +0000 (18:29 +0100) |
DragonFlyBSD has both vfsstat and fsstat apis.
It lacks ST_NOWAIT however.
The easiest fix is to swap the checks and use getfsstat first.
It lacks ST_NOWAIT however.
The easiest fix is to swap the checks and use getfsstat first.
src/utils_mount.c | patch | blob | history |
diff --git a/src/utils_mount.c b/src/utils_mount.c
index 05bc1a144069d04c8559150aa15a4afa76852f80..6555b4185d5353216e6b2e4cb4212fd7ed90e3e1 100644 (file)
--- a/src/utils_mount.c
+++ b/src/utils_mount.c
#elif HAVE_GETVFSSTAT || HAVE_GETFSSTAT
static cu_mount_t *cu_mount_getfsstat (void)
{
-#if HAVE_GETVFSSTAT
-# define STRUCT_STATFS struct statvfs
-# define CMD_STATFS getvfsstat
-# define FLAGS_STATFS ST_NOWAIT
-/* #endif HAVE_GETVFSSTAT */
-#elif HAVE_GETFSSTAT
+#if HAVE_GETFSSTAT
# define STRUCT_STATFS struct statfs
# define CMD_STATFS getfsstat
# define FLAGS_STATFS MNT_NOWAIT
-#endif /* HAVE_GETFSSTAT */
+/* #endif HAVE_GETFSSTAT */
+#elif HAVE_GETVFSSTAT
+# define STRUCT_STATFS struct statvfs
+# define CMD_STATFS getvfsstat
+# define FLAGS_STATFS ST_NOWAIT
+#endif /* HAVE_GETVFSSTAT */
int bufsize;
STRUCT_STATFS *buf;