mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 01:56:37 -04:00
95 lines
2.6 KiB
Text
95 lines
2.6 KiB
Text
--- net/BUILD.gn.orig 2025-04-16 18:18:42 UTC
|
|
+++ net/BUILD.gn
|
|
@@ -125,7 +125,7 @@ net_configs = [
|
|
"//build/config/compiler:wexit_time_destructors",
|
|
]
|
|
|
|
-if (is_linux || is_chromeos) {
|
|
+if ((is_linux || is_chromeos) && !is_bsd) {
|
|
net_configs += [ "//build/config/linux:libresolv" ]
|
|
}
|
|
|
|
@@ -1312,6 +1312,19 @@ component("net") {
|
|
]
|
|
}
|
|
|
|
+ if (is_bsd) {
|
|
+ sources -= [
|
|
+ "base/address_map_cache_linux.cc",
|
|
+ "base/address_map_cache_linux.h",
|
|
+ "base/address_map_linux.cc",
|
|
+ "base/address_map_linux.h",
|
|
+ "base/address_tracker_linux.cc",
|
|
+ "base/address_tracker_linux.h",
|
|
+ "base/network_change_notifier_linux.cc",
|
|
+ "base/network_interfaces_linux.cc",
|
|
+ ]
|
|
+ }
|
|
+
|
|
if (is_mac) {
|
|
sources += [
|
|
"base/network_notification_thread_mac.cc",
|
|
@@ -1475,7 +1488,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",
|
|
@@ -2174,7 +2187,7 @@ static_library("test_support") {
|
|
]
|
|
}
|
|
|
|
- if (is_linux || is_chromeos || is_android) {
|
|
+ if (!is_bsd && (is_linux || is_chromeos || is_android)) {
|
|
sources += [
|
|
"base/address_tracker_linux_test_util.cc",
|
|
"base/address_tracker_linux_test_util.h",
|
|
@@ -2985,14 +2998,14 @@ target(_test_target_type, "net_unittests") {
|
|
]
|
|
}
|
|
|
|
- if (is_linux) {
|
|
+ if (is_linux && !is_bsd) {
|
|
sources += [
|
|
"base/network_change_notifier_linux_unittest.cc",
|
|
"proxy_resolution/proxy_config_service_linux_unittest.cc",
|
|
]
|
|
}
|
|
|
|
- if (is_linux || is_chromeos) {
|
|
+ if ((is_linux || is_chromeos) && !is_bsd) {
|
|
sources += [
|
|
"base/address_tracker_linux_unittest.cc",
|
|
"base/network_interfaces_linux_unittest.cc",
|
|
@@ -3086,6 +3099,10 @@ target(_test_target_type, "net_unittests") {
|
|
]
|
|
}
|
|
|
|
+ if (is_bsd) {
|
|
+ deps += [ "//sandbox/policy" ]
|
|
+ }
|
|
+
|
|
if (enable_websockets) {
|
|
sources += [
|
|
"server/http_connection_unittest.cc",
|
|
@@ -3152,7 +3169,7 @@ target(_test_target_type, "net_unittests") {
|
|
]
|
|
}
|
|
|
|
- if (is_linux || is_chromeos) {
|
|
+ if ((is_linux || is_chromeos) && !is_bsd) {
|
|
sources += [ "tools/quic/quic_simple_server_test.cc" ]
|
|
}
|
|
|
|
@@ -3291,7 +3308,7 @@ target(_test_target_type, "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_unittest.cc" ]
|
|
}
|
|
|