$NetBSD: patch-src_3rdparty_chromium_third__party_libxml_BUILD.gn,v 1.2 2022/04/18 11:18:19 adam Exp $ --- src/3rdparty/chromium/third_party/libxml/BUILD.gn.orig 2021-02-19 16:41:59.000000000 +0000 +++ src/3rdparty/chromium/third_party/libxml/BUILD.gn @@ -4,7 +4,7 @@ # Define an "os_include" variable that points at the OS-specific generated # headers. These were generated by running the configure script offline. -if (is_linux || is_chromeos || is_android || is_nacl || is_fuchsia) { +if (is_linux || is_chromeos || is_android || is_nacl || is_fuchsia || is_bsd) { os_include = "linux" } else if (is_apple) { os_include = "mac" @@ -70,7 +70,7 @@ config("libxml_warnings") { # TODO(hans): See if we can fix upstream (http://crbug.com/763944). "-Wno-enum-compare", ] - } else if (is_linux || is_chromeos) { + } else if (is_linux || is_chromeos || is_bsd) { cflags = [ # gcc spits out a bunch of warnings about passing too many arguments to # __xmlSimpleError.