openbsd-ports/www/iridium/patches/patch-base_process_memory_cc
2017-04-19 05:16:46 +00:00

22 lines
656 B
Plaintext

$OpenBSD: patch-base_process_memory_cc,v 1.6 2017/04/19 05:16:46 robert Exp $
--- base/process/memory.cc.orig.port Fri Oct 21 00:01:59 2016
+++ base/process/memory.cc Sat Oct 22 15:54:28 2016
@@ -10,7 +10,7 @@
namespace base {
// Defined in memory_win.cc for Windows.
-#if !defined(OS_WIN)
+#if !defined(OS_WIN) && !defined(OS_BSD)
namespace {
@@ -31,7 +31,7 @@ void TerminateBecauseOutOfMemory(size_t size) {
#endif
// Defined in memory_mac.mm for Mac.
-#if !defined(OS_MACOSX)
+#if !defined(OS_MACOSX) && !defined(OS_BSD)
bool UncheckedCalloc(size_t num_items, size_t size, void** result) {
const size_t alloc_size = num_items * size;