Fix for macOS build

This commit is contained in:
Markus Gans 2020-04-19 20:57:28 +02:00
parent 9da4f00115
commit 88667f2cbb
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ void FFileDialog::getEntry (const char* const dir, const struct dirent* d_entry)
entry.socket = (d_entry->d_type & DT_SOCK) == DT_SOCK; entry.socket = (d_entry->d_type & DT_SOCK) == DT_SOCK;
#else #else
struct stat s{}; struct stat s{};
stat (entry.name, &s); stat (entry.name.c_str(), &s);
entry.fifo = S_ISFIFO (s.st_mode); entry.fifo = S_ISFIFO (s.st_mode);
entry.character_device = S_ISCHR (s.st_mode); entry.character_device = S_ISCHR (s.st_mode);
entry.directory = S_ISDIR (s.st_mode); entry.directory = S_ISDIR (s.st_mode);