OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/edk/embedder/platform_channel_utils_posix.h" | 5 #include "mojo/edk/embedder/platform_channel_utils_posix.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <sys/socket.h> | 8 #include <sys/socket.h> |
| 9 #if !defined(OS_NACL) |
9 #include <sys/uio.h> | 10 #include <sys/uio.h> |
| 11 #endif |
10 #include <unistd.h> | 12 #include <unistd.h> |
11 | 13 |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/posix/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
14 #include "build/build_config.h" | 16 #include "build/build_config.h" |
15 | 17 |
16 #if !defined(SO_PEEK_OFF) | 18 #if !defined(SO_PEEK_OFF) |
17 #define SO_PEEK_OFF 42 | 19 #define SO_PEEK_OFF 42 |
18 #endif | 20 #endif |
19 | 21 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 DCHECK(platform_handles->back().is_valid()); | 186 DCHECK(platform_handles->back().is_valid()); |
185 } | 187 } |
186 } | 188 } |
187 } | 189 } |
188 | 190 |
189 return result; | 191 return result; |
190 } | 192 } |
191 | 193 |
192 } // namespace edk | 194 } // namespace edk |
193 } // namespace mojo | 195 } // namespace mojo |
OLD | NEW |