diff options
Diffstat (limited to 'www/chromium/files/patch-third__party_webrtc_base_network.cc')
-rw-r--r-- | www/chromium/files/patch-third__party_webrtc_base_network.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/chromium/files/patch-third__party_webrtc_base_network.cc b/www/chromium/files/patch-third__party_webrtc_base_network.cc new file mode 100644 index 000000000000..4c17ec114eed --- /dev/null +++ b/www/chromium/files/patch-third__party_webrtc_base_network.cc @@ -0,0 +1,29 @@ +--- third_party/webrtc/base/network.cc.orig 2016-05-11 19:04:03 UTC ++++ third_party/webrtc/base/network.cc +@@ -18,7 +18,7 @@ + // linux/if.h can't be included at the same time as the posix sys/if.h, and + // it's transitively required by linux/route.h, so include that version on + // linux instead of the standard posix one. +-#if defined(WEBRTC_LINUX) ++#if defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) + #include <linux/if.h> + #include <linux/route.h> + #elif !defined(__native_client__) +@@ -634,7 +634,7 @@ bool BasicNetworkManager::CreateNetworks + } + #endif // WEBRTC_WIN + +-#if defined(WEBRTC_LINUX) ++#if defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) + bool IsDefaultRoute(const std::string& network_name) { + FileStream fs; + if (!fs.Open("/proc/net/route", "r", NULL)) { +@@ -677,7 +677,7 @@ bool BasicNetworkManager::IsIgnoredNetwo + strncmp(network.name().c_str(), "vboxnet", 7) == 0) { + return true; + } +-#if defined(WEBRTC_LINUX) ++#if defined(WEBRTC_LINUX) && !defined(WEBRTC_BSD) + // Make sure this is a default route, if we're ignoring non-defaults. + if (ignore_non_default_routes_ && !IsDefaultRoute(network.name())) { + return true; |