aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-services_device_time__zone__monitor_time__zone__monitor__linux.cc
blob: 48001843b4b1326a455e11913b4309c1de2e4b61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- services/device/time_zone_monitor/time_zone_monitor_linux.cc.orig	2023-10-19 19:58:30 UTC
+++ services/device/time_zone_monitor/time_zone_monitor_linux.cc
@@ -131,7 +131,11 @@ class TimeZoneMonitorLinuxImpl
     // false positives are harmless, assuming the false positive rate is
     // reasonable.
     const char* const kFilesToWatch[] = {
+#if BUILDFLAG(IS_BSD)
+        "/etc/localtime",
+#else
         "/etc/localtime", "/etc/timezone", "/etc/TZ",
+#endif
     };
     for (size_t index = 0; index < std::size(kFilesToWatch); ++index) {
       file_path_watchers_.push_back(std::make_unique<base::FilePathWatcher>());