blob: 519a8184caac871dc9c0ac7d29b46800cedaaaad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$OpenBSD: patch-content_common_user_agent_cc,v 1.19 2021/09/01 16:54:39 robert Exp $
Append Linux x86_64 to the user agent because we have to lie ...
Index: content/common/user_agent.cc
--- content/common/user_agent.cc.orig
+++ content/common/user_agent.cc
@@ -249,6 +249,16 @@ std::string BuildOSCpuInfoFromOSVersionAndCpuType(cons
);
#endif
+#if defined(OS_OPENBSD)
+#if defined(__x86_64__)
+ base::StringAppendF(&os_cpu, "; Linux x86_64");
+#elif defined(__aarch64__)
+ base::StringAppendF(&os_cpu, "; Linux aarch64");
+#else
+ base::StringAppendF(&os_cpu, "; Linux i686");
+#endif
+#endif
+
return os_cpu;
}
|