Disk (OpenBSD): fix build

This commit is contained in:
Carter Li
2024-10-28 16:27:29 +08:00
parent 82fc27f259
commit bc550a5ea7
+4 -1
View File
@@ -103,9 +103,12 @@ void detectFsInfo(struct statfs* fs, FFDisk* disk)
#else
static void detectFsInfo(struct statfs* fs, FFDisk* disk)
{
#ifdef MNT_IGNORE
if(fs->f_flags & MNT_IGNORE)
disk->type = FF_DISK_VOLUME_TYPE_HIDDEN_BIT;
else if(!(fs->f_flags & MNT_LOCAL))
else
#endif
if(!(fs->f_flags & MNT_LOCAL))
disk->type = FF_DISK_VOLUME_TYPE_EXTERNAL_BIT;
else
disk->type = FF_DISK_VOLUME_TYPE_REGULAR_BIT;