Skip to content

Commit

Permalink
Make VFS host build work again.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Oct 17, 2018
1 parent 39fa1eb commit 7580ac5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions AK/kstdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
#else
#include <cstdio>
#define kprintf printf
#define ksprintf sprintf
#endif
3 changes: 2 additions & 1 deletion VirtualFileSystem/UnixTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 2 additions & 1 deletion VirtualFileSystem/VirtualFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7580ac5

Please sign in to comment.