summaryrefslogtreecommitdiff
path: root/misc/util.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-03-30 03:57:41 +0200
committerMatthias Andree <matthias.andree@gmx.de>2004-03-30 03:57:41 +0200
commit289e0557c24c68290b6d9b73b09674447801fdac (patch)
tree8b348fa3aef231f6bb655ffffb1a5d0bbcd5d549 /misc/util.c
parentd3d741fc383d3eb1f8636393bc1c68c9bd467cc0 (diff)
downloade2fsprogs-289e0557c24c68290b6d9b73b09674447801fdac.tar.gz
GNU/KFreeBSD portability fixes. (Addresses Debian Bug #239934)
Diffstat (limited to 'misc/util.c')
-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