Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5160)

Unified Diff: base/sys_info_posix.cc

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sys_info.h ('k') | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_posix.cc
===================================================================
--- base/sys_info_posix.cc (revision 25977)
+++ base/sys_info_posix.cc (working copy)
@@ -17,7 +17,7 @@
#include <mach/mach_init.h>
#endif
-#if defined(OS_OPENBSD)
+#if defined(OS_OPENBSD) || defined(OS_FREEBSD)
#include <sys/param.h>
#include <sys/sysctl.h>
#endif
@@ -171,6 +171,12 @@
return limit;
}
+#elif defined(OS_FREEBSD)
+size_t SysInfo::MaxSharedMemorySize() {
+// TODO(benl): we should be able to get this from sysctl
+// (kern.ipc.shmmax) but the constants are missing from the headers...
+ return 33554432;
+}
#endif
} // namespace base
« no previous file with comments | « base/sys_info.h ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698