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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_dev.cc

Issue 17234004: [NaCl SDK] Fix SDK waterfall: unistd.h does not exist on windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 #if defined(WIN32) 5 #if defined(WIN32)
6 #define _CRT_RAND_S 6 #define _CRT_RAND_S
7 #endif 7 #endif
8 8
9 #include <errno.h> 9 #include <errno.h>
10 #include <fcntl.h> 10 #include <fcntl.h>
11 #include <string.h> 11 #include <string.h>
12 #include <unistd.h>
13 #include "nacl_io/kernel_wrap_real.h" 12 #include "nacl_io/kernel_wrap_real.h"
14 #include "nacl_io/mount_dev.h" 13 #include "nacl_io/mount_dev.h"
15 #include "nacl_io/mount_node.h" 14 #include "nacl_io/mount_node.h"
16 #include "nacl_io/mount_node_dir.h" 15 #include "nacl_io/mount_node_dir.h"
16 #include "nacl_io/osunistd.h"
17 #include "nacl_io/pepper_interface.h" 17 #include "nacl_io/pepper_interface.h"
18 #include "sdk_util/auto_lock.h" 18 #include "sdk_util/auto_lock.h"
19 19
20 #if defined(__native_client__) 20 #if defined(__native_client__)
21 #include <irt.h> 21 #include <irt.h>
22 #elif defined(WIN32) 22 #elif defined(WIN32)
23 #include <stdlib.h> 23 #include <stdlib.h>
24 #endif 24 #endif
25 25
26 namespace { 26 namespace {
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 INITIALIZE_DEV_NODE_1("/stderr", RealNode, 2); 345 INITIALIZE_DEV_NODE_1("/stderr", RealNode, 2);
346 346
347 return 0; 347 return 0;
348 } 348 }
349 349
350 void MountDev::Destroy() { 350 void MountDev::Destroy() {
351 if (root_) 351 if (root_)
352 root_->Release(); 352 root_->Release();
353 root_ = NULL; 353 root_ = NULL;
354 } 354 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/library.dsc ('k') | native_client_sdk/src/libraries/nacl_io/mount_http.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698