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

Unified Diff: mojo/edk/embedder/platform_channel_utils_posix.cc

Issue 2071143003: Various changes to make Mojo work under NaCl non-sfi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GYP build. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/embedder/platform_channel_pair_posix.cc ('k') | mojo/edk/system/node_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/platform_channel_utils_posix.cc
diff --git a/mojo/edk/embedder/platform_channel_utils_posix.cc b/mojo/edk/embedder/platform_channel_utils_posix.cc
index d2a9b566c6af2eaa07906ebe1c2067beda7b58e6..9f4e9f90a3d31b502097d3c95cf891ed557aef09 100644
--- a/mojo/edk/embedder/platform_channel_utils_posix.cc
+++ b/mojo/edk/embedder/platform_channel_utils_posix.cc
@@ -59,7 +59,8 @@ ssize_t PlatformChannelWrite(PlatformHandle h,
DCHECK(bytes);
DCHECK_GT(num_bytes, 0u);
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_NACL_NONSFI)
+ // send() doesn't appear to work under NaCl-nonsfi.
Mark Seaborn 2016/06/20 21:12:15 You can be more definite: "doesn't appear to work"
Anand Mistry (off Chromium) 2016/06/21 00:32:27 Done.
return HANDLE_EINTR(write(h.handle, bytes, num_bytes));
#else
return send(h.handle, bytes, num_bytes, kSendFlags);
« no previous file with comments | « mojo/edk/embedder/platform_channel_pair_posix.cc ('k') | mojo/edk/system/node_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698