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

Unified Diff: mojo/shell/domain_socket/net_errors.cc

Issue 700763002: More Windows build fixes, some tidying in mojo_main (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: reland: fix sense in mojo/shell Created 6 years, 1 month 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/shell/desktop/mojo_main.cc ('k') | mojo/shell/incoming_connection_listener_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/domain_socket/net_errors.cc
diff --git a/mojo/shell/domain_socket/net_errors.cc b/mojo/shell/domain_socket/net_errors.cc
index cc7a73a76e1562768ee353278b96e7023a0439aa..b73c8895307b3b1430de8afa151c4f6465bb52f0 100644
--- a/mojo/shell/domain_socket/net_errors.cc
+++ b/mojo/shell/domain_socket/net_errors.cc
@@ -6,7 +6,15 @@
#include <errno.h>
#include <stdlib.h>
+#if defined(OS_POSIX)
#include <unistd.h>
+#endif
+#if defined(OS_WIN)
+#include <winsock2.h>
+#define EDQUOT WSAEDQUOT
+#define EHOSTDOWN WSAEHOSTDOWN
+#define EUSERS WSAEUSERS
+#endif
#include <string>
« no previous file with comments | « mojo/shell/desktop/mojo_main.cc ('k') | mojo/shell/incoming_connection_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698