blob: b263485c6690e3a79c41b78757f7534fa5506de2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
--- net/tools/net_watcher/net_watcher.cc.orig 2025-04-22 20:15:27 UTC
+++ net/tools/net_watcher/net_watcher.cc
@@ -31,7 +31,7 @@
#include "net/proxy_resolution/proxy_config_service.h"
#include "net/proxy_resolution/proxy_config_with_annotation.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "net/base/network_change_notifier_linux.h"
#endif
@@ -41,7 +41,7 @@ namespace {
namespace {
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Flag to specifies which network interfaces to ignore. Interfaces should
// follow as a comma seperated list.
const char kIgnoreNetifFlag[] = "ignore-netif";
@@ -143,7 +143,7 @@ int main(int argc, char* argv[]) {
} // namespace
int main(int argc, char* argv[]) {
-#if BUILDFLAG(IS_APPLE)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
base::apple::ScopedNSAutoreleasePool pool;
#endif
base::AtExitManager exit_manager;
@@ -160,7 +160,7 @@ int main(int argc, char* argv[]) {
NetWatcher net_watcher;
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
std::string ignored_netifs_str =
command_line->GetSwitchValueASCII(kIgnoreNetifFlag);
|