mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 09:15:07 +00:00
Make it possible to build the Kernel on a macOS host.
It still requires an ELF compiler and linker, but at least it builds. I need to get rid of the "Unix" namespace. This does a lot of that.
This commit is contained in:
parent
44036f32bc
commit
85b886c2e0
31 changed files with 88 additions and 94 deletions
|
@ -12,7 +12,7 @@ public:
|
|||
DiskDevice& device() { return *m_device; }
|
||||
const DiskDevice& device() const { return *m_device; }
|
||||
|
||||
unsigned blockSize() const { return m_blockSize; }
|
||||
size_t blockSize() const { return m_blockSize; }
|
||||
|
||||
protected:
|
||||
explicit DiskBackedFS(RetainPtr<DiskDevice>&&);
|
||||
|
@ -27,7 +27,7 @@ protected:
|
|||
bool writeBlocks(unsigned index, unsigned count, const ByteBuffer&);
|
||||
|
||||
private:
|
||||
unsigned m_blockSize { 0 };
|
||||
size_t m_blockSize { 0 };
|
||||
RetainPtr<DiskDevice> m_device;
|
||||
|
||||
mutable SpinLock m_blockCacheLock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue