Patch for Solaris support, mostly ifdefs and header files, plus adds libevent configuration.
BUG=30101
TEST=compiles
Review URL: http://codereview.chromium.org/7238021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90494 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 94f8c957011e0d1f9a28607a05066edc2989eaa2
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc
index a6b88a8..4d7cc4e 100644
--- a/base/sys_info_posix.cc
+++ b/base/sys_info_posix.cc
@@ -20,7 +20,6 @@
#define statvfs statfs // Android uses a statvfs-like statfs struct and call.
#else
#include <sys/statvfs.h>
-#include <sys/sysctl.h>
#endif
namespace base {
@@ -51,7 +50,7 @@
#if !defined(OS_MACOSX)
// static
std::string SysInfo::OperatingSystemName() {
- utsname info;
+ struct utsname info;
if (uname(&info) < 0) {
NOTREACHED();
return "";
@@ -61,7 +60,7 @@
// static
std::string SysInfo::OperatingSystemVersion() {
- utsname info;
+ struct utsname info;
if (uname(&info) < 0) {
NOTREACHED();
return "";
@@ -72,7 +71,7 @@
// static
std::string SysInfo::CPUArchitecture() {
- utsname info;
+ struct utsname info;
if (uname(&info) < 0) {
NOTREACHED();
return "";