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

Unified Diff: net/udp/udp_socket.h

Issue 188873004: Compile src/net for PNaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: net/udp/udp_socket.h
diff --git a/net/udp/udp_socket.h b/net/udp/udp_socket.h
index 97a4bc57bb2ad5dd9c8639d130798cef0ee988e8..385b9818d88828a5946bfb8a416ded7df3bac520 100644
--- a/net/udp/udp_socket.h
+++ b/net/udp/udp_socket.h
@@ -7,7 +7,9 @@
#include "build/build_config.h"
-#if defined(OS_WIN)
+#if defined(OS_NACL)
+#include "net/udp/udp_socket_nacl.h"
+#elif defined(OS_WIN)
#include "net/udp/udp_socket_win.h"
#elif defined(OS_POSIX)
#include "net/udp/udp_socket_libevent.h"
@@ -33,7 +35,9 @@ namespace net {
// RecvFrom/SendTo // Each read can come from a different client
// // Writes need to be directed to a specific
// // address.
-#if defined(OS_WIN)
+#if defined(OS_NACL)
+typedef UDPSocketNacl UDPSocket;
+#elif defined(OS_WIN)
typedef UDPSocketWin UDPSocket;
#elif defined(OS_POSIX)
typedef UDPSocketLibevent UDPSocket;
« net/net_nacl.gyp ('K') | « net/socket/tcp_socket_nacl.cc ('k') | net/udp/udp_socket_nacl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698