Skip to content

Commit

Permalink
Disk (OpenBSD): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Oct 28, 2024
1 parent 82fc27f commit bc550a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/detection/disk/disk_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc550a5

Please sign in to comment.