Index: base/sys_info_posix.cc |
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc |
index a6b88a82a5d7d2b39e15c23d0e45849f708ce2f0..d7266662ccbf00f2fcb86590fbb15b884ce0f5a8 100644 |
--- a/base/sys_info_posix.cc |
+++ b/base/sys_info_posix.cc |
@@ -20,6 +20,9 @@ |
#define statvfs statfs // Android uses a statvfs-like statfs struct and call. |
#else |
#include <sys/statvfs.h> |
+#endif |
+ |
+#if defined(OS_OPENBSD) || defined(OS_FREEBSD) |
#include <sys/sysctl.h> |
#endif |
@@ -51,7 +54,7 @@ int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { |
#if !defined(OS_MACOSX) |
// static |
std::string SysInfo::OperatingSystemName() { |
- utsname info; |
+ struct utsname info; |
if (uname(&info) < 0) { |
NOTREACHED(); |
return ""; |
@@ -61,7 +64,7 @@ std::string SysInfo::OperatingSystemName() { |
// static |
std::string SysInfo::OperatingSystemVersion() { |
- utsname info; |
+ struct utsname info; |
if (uname(&info) < 0) { |
NOTREACHED(); |
return ""; |
@@ -72,7 +75,7 @@ std::string SysInfo::OperatingSystemVersion() { |
// static |
std::string SysInfo::CPUArchitecture() { |
- utsname info; |
+ struct utsname info; |
if (uname(&info) < 0) { |
NOTREACHED(); |
return ""; |