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

Unified Diff: net/base/net_util_posix.cc

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/base/net_util_posix.cc
diff --git a/net/base/net_util_posix.cc b/net/base/net_util_posix.cc
index 268d12df6d01110d6a17279ace5d830de449e1c8..d7adf65e95056819f7a4839c2f09cec0bfd30c3f 100644
--- a/net/base/net_util_posix.cc
+++ b/net/base/net_util_posix.cc
@@ -17,11 +17,11 @@
#include "net/base/net_errors.h"
#include "url/gurl.h"
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) && !defined(OS_NACL)
#include <ifaddrs.h>
-#endif
#include <net/if.h>
#include <netinet/in.h>
+#endif
#if defined(OS_ANDROID)
#include "net/android/network_library.h"
@@ -65,7 +65,9 @@ bool FileURLToFilePath(const GURL& url, base::FilePath* path) {
bool GetNetworkList(NetworkInterfaceList* networks,
HostScopeVirtualInterfacePolicy policy) {
-#if defined(OS_ANDROID)
+#if defined(OS_NACL)
+ return false;
+#elif defined(OS_ANDROID)
std::string network_list = android::GetNetworkList();
base::StringTokenizer network_interfaces(network_list, "\n");
while (network_interfaces.GetNext()) {

Powered by Google App Engine
This is Rietveld 408576698