summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/util.c b/misc/util.c
index 80871353..16ea19f4 100644
--- a/misc/util.c
+++ b/misc/util.c
@@ -97,7 +97,7 @@ void check_plausibility(const char *device)
"did you specify it correctly?\n"), stderr);
exit(1);
}
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
/* On FreeBSD, all disk devices are character specials */
if (!S_ISBLK(s.st_mode) && !S_ISCHR(s.st_mode))
#else