diff --git a/src/ioslaves/file/file.cpp b/src/ioslaves/file/file.cpp --- a/src/ioslaves/file/file.cpp +++ b/src/ioslaves/file/file.cpp @@ -875,6 +875,13 @@ entry.insert(KIO::UDSEntry::UDS_CREATION_TIME, buff.__st_birthtime); } #endif +#ifdef birthTime_ + /* As above, but it's called birthTime_ in Linux + * Only defined if the system has at least Linux kernel 4.11 and Qt 5.10 */ + if (buff.birthTime_ > 0) { + entry.insert(KIO::UDSEntry::UDS_CREATION_TIME, buff.birthTime_); + } +#endif } // Note: buff.st_ctime isn't the creation time !