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

Side by Side Diff: ipc/ipc_platform_file.cc

Issue 10451068: Fixing gcc 4.7 building problems. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ipc/ipc_platform_file.h" 5 #include "ipc/ipc_platform_file.h"
6 6
7 #if defined(OS_ANDROID) 7 #if defined(OS_LINUX)
agl 2012/05/29 18:33:22 OS_POSIX again?
Han 2012/05/29 18:42:34 Done.
8 #include <unistd.h> 8 #include <unistd.h>
9 #endif 9 #endif
10 10
11 namespace IPC { 11 namespace IPC {
12 12
13 PlatformFileForTransit GetFileHandleForProcess(base::PlatformFile handle, 13 PlatformFileForTransit GetFileHandleForProcess(base::PlatformFile handle,
14 base::ProcessHandle process, 14 base::ProcessHandle process,
15 bool close_source_handle) { 15 bool close_source_handle) {
16 IPC::PlatformFileForTransit out_handle; 16 IPC::PlatformFileForTransit out_handle;
17 #if defined(OS_WIN) 17 #if defined(OS_WIN)
(...skipping 20 matching lines...) Expand all
38 // condition. 38 // condition.
39 int fd = close_source_handle ? handle : ::dup(handle); 39 int fd = close_source_handle ? handle : ::dup(handle);
40 out_handle = base::FileDescriptor(fd, true); 40 out_handle = base::FileDescriptor(fd, true);
41 #else 41 #else
42 #error Not implemented. 42 #error Not implemented.
43 #endif 43 #endif
44 return out_handle; 44 return out_handle;
45 } 45 }
46 46
47 } // namespace IPC 47 } // namespace IPC
OLDNEW
« ipc/ipc_channel.h ('K') | « ipc/ipc_channel_posix.cc ('k') | net/base/x509_util_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698