macos/openbsd: fs type name

This commit is contained in:
Alastair Poole 2020-06-08 11:25:36 +01:00
parent ed267ba555
commit 68f5c3fcbf
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ filesystem_info_get(const char *path)
fs->mount = strdup(mountpoint);
fs->path = strdup(path);
fs->type = stats.f_type;
#if defined(__FreeBSD__) || defined(__DragonFly__)
#if !defined(__linux__)
fs->type_name = strdup(stats.f_fstypename);
#endif
fs->usage.total = stats.f_bsize * stats.f_blocks;