blob: 452d1905c3874b339a9c250e36e28d27dc7118f4 (
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
25
26
27
28
|
$NetBSD: patch-ipc_chromium_src_base_sys__info__posix.cc,v 1.1 2015/07/09 14:13:52 ryoon Exp $
--- ipc/chromium/src/base/sys_info_posix.cc.orig 2014-04-18 02:03:04.000000000 +0000
+++ ipc/chromium/src/base/sys_info_posix.cc
@@ -119,7 +119,11 @@ std::wstring SysInfo::GetEnvVar(const wc
// static
std::string SysInfo::OperatingSystemName() {
+#ifdef OS_SOLARIS
+ struct utsname info;
+#else
utsname info;
+#endif
if (uname(&info) < 0) {
NOTREACHED();
return "";
@@ -129,7 +133,11 @@ std::string SysInfo::OperatingSystemName
// static
std::string SysInfo::OperatingSystemVersion() {
+#ifdef OS_SOLARIS
+ struct utsname info;
+#else
utsname info;
+#endif
if (uname(&info) < 0) {
NOTREACHED();
return "";
|