openbsd-ports/www/iridium/patches/patch-base_process_memory_cc
2021-07-06 11:13:48 +00:00

22 lines
615 B
Plaintext

$OpenBSD: patch-base_process_memory_cc,v 1.15 2021/07/06 11:13:49 robert Exp $
Index: base/process/memory.cc
--- base/process/memory.cc.orig
+++ base/process/memory.cc
@@ -64,12 +64,14 @@ NOINLINE void OnNoMemoryInternal(size_t size) {
} // namespace internal
+#if !defined(OS_BSD)
void TerminateBecauseOutOfMemory(size_t size) {
internal::OnNoMemoryInternal(size);
}
+#endif
// Defined in memory_mac.mm for Mac.
-#if !defined(OS_APPLE)
+#if !defined(OS_APPLE) && !defined(OS_BSD)
bool UncheckedCalloc(size_t num_items, size_t size, void** result) {
const size_t alloc_size = num_items * size;