mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Make VFS host build work again.
This commit is contained in:
parent
39fa1eb2c2
commit
7580ac576f
Notes:
sideshowbarker
2024-07-19 18:47:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7580ac576f4
3 changed files with 5 additions and 2 deletions
|
@ -5,4 +5,5 @@
|
|||
#else
|
||||
#include <cstdio>
|
||||
#define kprintf printf
|
||||
#define ksprintf sprintf
|
||||
#endif
|
||||
|
|
|
@ -18,13 +18,14 @@ typedef dword gid_t;
|
|||
#ifdef SERENITY_KERNEL
|
||||
// FIXME: Support 64-bit offsets!
|
||||
typedef signed_dword off_t;
|
||||
typedef unsigned int time_t;
|
||||
#else
|
||||
typedef signed_qword off_t;
|
||||
typedef ::time_t time_t;
|
||||
#endif
|
||||
|
||||
typedef dword blksize_t;
|
||||
typedef dword blkcnt_t;
|
||||
typedef unsigned int time_t;
|
||||
typedef dword size_t;
|
||||
typedef signed_dword ssize_t;
|
||||
|
||||
|
|
|
@ -267,7 +267,8 @@ void VirtualFileSystem::listDirectory(const String& path)
|
|||
}
|
||||
|
||||
kprintf("\033[30;1m");
|
||||
auto tm = *klocaltime(&metadata.mtime);
|
||||
time_t mtime = metadata.mtime;
|
||||
auto tm = *klocaltime(&mtime);
|
||||
kprintf("%04u-%02u-%02u %02u:%02u:%02u ",
|
||||
tm.tm_year + 1900,
|
||||
tm.tm_mon + 1,
|
||||
|
|
Loading…
Reference in a new issue