Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.cc

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.cc b/native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.cc
index 6c1109c302250105ebf9567cee72e5b310eded09..0d27cc30ba010b1f5011ba2aeb8404a792c36916 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.cc
@@ -2,14 +2,15 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#include "nacl_mounts/mount_node_dir.h"
-#include <dirent.h>
#include <errno.h>
-#include <sys/stat.h>
+#include <string.h>
-#include "macros.h"
-#include "auto_lock.h"
-#include "mount_node_dir.h"
+#include "nacl_mounts/osdirent.h"
+#include "nacl_mounts/osstat.h"
+#include "utils/macros.h"
+#include "utils/auto_lock.h"
MountNodeDir::MountNodeDir(Mount* mount, int ino, int dev)
: MountNode(mount, ino, dev),
@@ -22,7 +23,7 @@ MountNodeDir::~MountNodeDir() {
bool MountNodeDir::Init(int mode, short uid, short gid) {
bool ok = MountNode::Init(mode, uid, gid);
- stat_.st_mode |= _S_IFDIR;
+ stat_.st_mode |= S_IFDIR;
return ok;
}

Powered by Google App Engine
This is Rietveld 408576698