Add support for FAT filesystem detection on FreeBSD

Use the same code for macOS on FreeBSD as their statfs implementation is
essentially the same.

Signed-off-by: Avery King <avery98@pm.me>
This commit is contained in:
Avery King
2023-12-05 07:50:21 -08:00
parent ef699b3a4b
commit 21f2dbf1ad

View File

@@ -702,7 +702,7 @@ wxString FileNames::UnsavedProjectExtension()
// How to detect whether the file system of a path is FAT
// No apparent way to do it with wxWidgets
#if defined(__DARWIN__)
#if defined(__DARWIN__) || defined(__FreeBSD__)
#include <sys/mount.h>
bool FileNames::IsOnFATFileSystem(const FilePath &path)
{