summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-components_named__system__lock_BUILD.gn
blob: 662c32cc99ded80cdcd56d728ad032e32ae46589 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- components/named_system_lock/BUILD.gn.orig	2025-04-04 08:52:13 UTC
+++ components/named_system_lock/BUILD.gn
@@ -5,7 +5,7 @@
 static_library("named_system_lock") {
   sources = [ "lock.h" ]
   deps = [ "//base" ]
-  if (is_linux) {
+  if (!is_bsd && is_linux) {
     sources += [ "lock_linux.cc" ]
   } else if (is_mac) {
     sources += [ "lock_mac.mm" ]
@@ -20,7 +20,7 @@ source_set("unit_tests") {
   sources = []
 
   # Disable NamedSystemLockTest on unsupported platforms.
-  if (is_linux || is_win || is_mac) {
+  if (!is_bsd && (is_linux || is_win || is_mac)) {
     sources += [ "lock_unittest.cc" ]
   }