libbe_build: Fix build on non-Haiku platforms.

Probably should have tested that before pushing.
This commit is contained in:
Augustin Cavalier
2021-11-18 15:42:17 -05:00
parent ec21dc91b1
commit 9cc1718212
3 changed files with 0 additions and 19 deletions
-2
View File
@@ -36,8 +36,6 @@ class BDirectory : public BNode, public BEntryList {
status_t GetEntry(BEntry *entry) const;
bool IsRootDirectory() const;
status_t FindEntry(const char *path, BEntry *entry,
bool traverse = false) const;
-15
View File
@@ -14,8 +14,6 @@
#include <fcntl.h>
#include <string.h>
#include <compat/sys/stat.h>
#include <Directory.h>
#include <Entry.h>
#include <File.h>
@@ -226,19 +224,6 @@ BDirectory::GetEntry(BEntry* entry) const
}
bool
BDirectory::IsRootDirectory() const
{
// compare the directory's node ID with the ID of the root node of the FS
bool result = false;
node_ref ref;
fs_info info;
if (GetNodeRef(&ref) == B_OK && fs_stat_dev(ref.device, &info) == 0)
result = (ref.node == info.root);
return result;
}
status_t
BDirectory::FindEntry(const char* path, BEntry* entry, bool traverse) const
{
-2
View File
@@ -16,8 +16,6 @@
#include <string.h>
#include <unistd.h>
#include <compat/sys/stat.h>
#include <Directory.h>
#include <Entry.h>
#include <fs_attr.h>