blob: 4b32d6d0c562f988f3a6a7dd10a74d6b7bccc82c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$OpenBSD: patch-remoting_host_heartbeat_sender_cc,v 1.9 2021/11/16 11:28:47 robert Exp $
Index: remoting/host/heartbeat_sender.cc
--- remoting/host/heartbeat_sender.cc.orig
+++ remoting/host/heartbeat_sender.cc
@@ -111,7 +111,7 @@ const net::BackoffEntry::Policy kBackoffPolicy = {
std::string GetHostname() {
// TODO(crbug.com/1052397): Revisit the macro expression once build flag
// switch of lacros-chrome is complete.
-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
+#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
return net::GetHostName();
#elif defined(OS_WIN)
wchar_t buffer[MAX_PATH] = {0};
|