summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-net_BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-net_BUILD.gn')
-rw-r--r--www/chromium/files/patch-net_BUILD.gn69
1 files changed, 37 insertions, 32 deletions
diff --git a/www/chromium/files/patch-net_BUILD.gn b/www/chromium/files/patch-net_BUILD.gn
index 769e55fee99c..1fdcf32f98fa 100644
--- a/www/chromium/files/patch-net_BUILD.gn
+++ b/www/chromium/files/patch-net_BUILD.gn
@@ -1,4 +1,4 @@
---- net/BUILD.gn.orig 2021-05-12 22:05:57 UTC
+--- net/BUILD.gn.orig 2021-07-19 18:45:19 UTC
+++ net/BUILD.gn
@@ -100,7 +100,7 @@ net_configs = [
"//build/config/compiler:wexit_time_destructors",
@@ -9,42 +9,47 @@
net_configs += [ "//build/config/linux:libresolv" ]
}
-@@ -1242,6 +1242,16 @@ component("net") {
- ]
- }
+@@ -1208,7 +1208,7 @@ component("net") {
+ ]
+ }
+
+- if (is_linux || is_chromeos || is_android) {
++ if ((is_linux || is_chromeos || is_android) && !is_bsd) {
+ sources += [
+ "base/address_tracker_linux.cc",
+ "base/address_tracker_linux.h",
+@@ -1218,6 +1218,12 @@ component("net") {
+ ]
+ }
-+ if (is_bsd) {
-+ sources -= [
-+ "base/address_tracker_linux.cc",
-+ "base/address_tracker_linux.h",
-+ "base/network_change_notifier_linux.cc",
-+ "base/network_change_notifier_linux.h",
-+ "base/network_interfaces_linux.cc"
-+ ]
-+ }
++ if (is_bsd) {
++ sources += [
++ "base/platform_mime_util_linux.cc",
++ ]
++ }
+
- if (is_mac) {
- sources += [
- "base/network_notification_thread_mac.cc",
-@@ -1378,7 +1388,7 @@ component("net") {
- }
+ if (is_mac) {
+ sources += [
+ "base/network_notification_thread_mac.cc",
+@@ -1354,7 +1360,7 @@ component("net") {
}
+ }
-- if (is_android || is_chromeos_ash) {
-+ if (is_android || is_chromeos_ash || is_bsd) {
- sources += [
- "base/network_change_notifier_posix.cc",
- "base/network_change_notifier_posix.h",
-@@ -1411,7 +1421,7 @@ component("net") {
- }
+- if (is_android || is_chromeos_ash) {
++ if (is_android || is_chromeos_ash || is_bsd) {
+ sources += [
+ "base/network_change_notifier_posix.cc",
+ "base/network_change_notifier_posix.h",
+@@ -1387,7 +1393,7 @@ component("net") {
+ }
- # Use getifaddrs() on POSIX platforms, except Linux.
-- if (is_posix && !is_linux && !is_chromeos) {
-+ if ((is_posix && !is_linux && !is_chromeos) || is_bsd) {
- sources += [
- "base/network_interfaces_getifaddrs.cc",
- "base/network_interfaces_getifaddrs.h",
-@@ -4748,7 +4758,7 @@ test("net_unittests") {
+ # Use getifaddrs() on POSIX platforms, except Linux.
+- if (is_posix && !is_linux && !is_chromeos) {
++ if ((is_posix && !is_linux && !is_chromeos) || is_bsd) {
+ sources += [
+ "base/network_interfaces_getifaddrs.cc",
+ "base/network_interfaces_getifaddrs.h",
+@@ -4708,7 +4714,7 @@ test("net_unittests") {
}
# Use getifaddrs() on POSIX platforms, except Linux and Android.