From 32d33c44e55df443c9a481cf0c8175be432c4913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 17 Feb 2008 17:53:54 +0000 Subject: [PATCH] Fix build on BeOS host, seems it was trying to instanciate a struct stat instead... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23988 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/stat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/fs_shell/stat.cpp b/src/tools/fs_shell/stat.cpp index a7c3202484..af2c63f55a 100644 --- a/src/tools/fs_shell/stat.cpp +++ b/src/tools/fs_shell/stat.cpp @@ -36,7 +36,7 @@ FSShell::unrestricted_stat(const char *path, struct fssh_stat *fsshStat) // Use the _kern_read_stat() defined in libroot on BeOS incompatible // systems. Required for support for opening symlinks. #if __BEOS__ - if (stat(path, &st) < 0) + if (::stat(path, &st) < 0) return -1; #else status_t error = _kern_read_stat(-1, path, true, &st, sizeof(st));