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

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: rebase and comment 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..3171844f67c7efd3b85bfc6fc55ab91d67b9c292 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() is not available under NaCl-nonsfi.
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