From 31af2167d6d0d4e1343afe2e7fa2e129f02e8ce8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 28 Jul 2017 01:44:18 -0500 Subject: [PATCH] Add operator< for DirectoryListing --- src/ox/fs/filesystem.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ox/fs/filesystem.hpp b/src/ox/fs/filesystem.hpp index dcaf41a43..48efcc155 100644 --- a/src/ox/fs/filesystem.hpp +++ b/src/ox/fs/filesystem.hpp @@ -42,6 +42,11 @@ struct DirectoryListing { } }; +template +bool operator<(const DirectoryListing &a, const DirectoryListing &b) { + return a.name < b.name; +} + template struct __attribute__((packed)) DirectoryEntry { InodeId_t inode;