libbe_build: Fix build on non-Haiku platforms.
Probably should have tested that before pushing.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user