| 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
|
|
|