1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

Make VFS host build work again.

This commit is contained in:
Andreas Kling 2018-10-17 12:23:19 +02:00
parent 39fa1eb2c2
commit 7580ac576f
3 changed files with 5 additions and 2 deletions

View file

@ -5,4 +5,5 @@
#else #else
#include <cstdio> #include <cstdio>
#define kprintf printf #define kprintf printf
#define ksprintf sprintf
#endif #endif

View file

@ -18,13 +18,14 @@ typedef dword gid_t;
#ifdef SERENITY_KERNEL #ifdef SERENITY_KERNEL
// FIXME: Support 64-bit offsets! // FIXME: Support 64-bit offsets!
typedef signed_dword off_t; typedef signed_dword off_t;
typedef unsigned int time_t;
#else #else
typedef signed_qword off_t; typedef signed_qword off_t;
typedef ::time_t time_t;
#endif #endif
typedef dword blksize_t; typedef dword blksize_t;
typedef dword blkcnt_t; typedef dword blkcnt_t;
typedef unsigned int time_t;
typedef dword size_t; typedef dword size_t;
typedef signed_dword ssize_t; typedef signed_dword ssize_t;

View file

@ -267,7 +267,8 @@ void VirtualFileSystem::listDirectory(const String& path)
} }
kprintf("\033[30;1m"); 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 ", kprintf("%04u-%02u-%02u %02u:%02u:%02u ",
tm.tm_year + 1900, tm.tm_year + 1900,
tm.tm_mon + 1, tm.tm_mon + 1,