--- third_party/electron_node/deps/cares/BUILD.gn.orig 2024-09-11 08:22:09 UTC +++ third_party/electron_node/deps/cares/BUILD.gn @@ -154,9 +154,14 @@ static_library("cares") { defines += [ "HAVE_CONFIG_H" ] } - if (is_linux) { + if (is_linux && !is_bsd) { include_dirs += [ "config/linux" ] sources += [ "config/linux/ares_config.h" ] + } + + if (is_freebsd) { + include_dirs += [ "config/freebsd" ] + sources += [ "config/freebsd/ares_config.h" ] } if (is_mac) {