diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2023-01-16 22:20:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 22:20:22 +0100 |
commit | 2c2691276211e13857950d076631b5a420a6896e (patch) | |
tree | 3f64ec968581d9d62e933eca06a82ab4837514fc /drivers/unix/dir_access_unix.cpp | |
parent | 585a9344548dd56142ec4480d584daaa2950a689 (diff) | |
parent | 91a54cdbc195270556b7014d575740400955f8bf (diff) | |
download | redot-engine-2c2691276211e13857950d076631b5a420a6896e.tar.gz |
Merge pull request #71518 from akien-mga/add-LINUXBSD_ENABLED-for-non-x11-checks
Linux/BSD: Add LINUXBSD_ENABLED define for non X11-related checks
Diffstat (limited to 'drivers/unix/dir_access_unix.cpp')
-rw-r--r-- | drivers/unix/dir_access_unix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp index 557060c907..a162f46103 100644 --- a/drivers/unix/dir_access_unix.cpp +++ b/drivers/unix/dir_access_unix.cpp @@ -189,7 +189,7 @@ void DirAccessUnix::list_dir_end() { _cisdir = false; } -#if defined(HAVE_MNTENT) && defined(X11_ENABLED) +#if defined(HAVE_MNTENT) && defined(LINUXBSD_ENABLED) static bool _filter_drive(struct mntent *mnt) { // Ignore devices that don't point to /dev if (strncmp(mnt->mnt_fsname, "/dev", 4) != 0) { @@ -213,7 +213,7 @@ static void _get_drives(List<String> *list) { // Add root. list->push_back("/"); -#if defined(HAVE_MNTENT) && defined(X11_ENABLED) +#if defined(HAVE_MNTENT) && defined(LINUXBSD_ENABLED) // Check /etc/mtab for the list of mounted partitions. FILE *mtab = setmntent("/etc/mtab", "r"); if (mtab) { |