blob: 7cc065ce5e232abe27028dfe35a158b863e43b43 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- base/process/memory_stubs.cc.orig 2016-03-25 13:04:44 UTC
+++ base/process/memory_stubs.cc
@@ -27,6 +27,8 @@ bool AdjustOOMScore(ProcessId process, i
// their respective stdlib function since those functions will return null on a
// failure to allocate.
+#if !defined(OS_FREEBSD)
+// FreeBSD brings it's own implementation in memory.cc -- cmt
bool UncheckedMalloc(size_t size, void** result) {
*result = malloc(size);
return *result != nullptr;
@@ -36,5 +38,6 @@ bool UncheckedCalloc(size_t num_items, s
*result = calloc(num_items, size);
return *result != nullptr;
}
+#endif
} // namespace base
|