$OpenBSD: patch-intern_guardedalloc_intern_mallocn_guarded_impl_c,v 1.5 2015/09/22 18:48:40 pascal Exp $
--- intern/guardedalloc/intern/mallocn_guarded_impl.c.orig	Tue Jun 30 15:07:35 2015
+++ intern/guardedalloc/intern/mallocn_guarded_impl.c	Thu Sep 10 19:35:19 2015
@@ -687,6 +687,9 @@ static int compare_len(const void *p1, const void *p2)
 
 void MEM_guarded_printmemlist_stats(void)
 {
+#ifdef __OpenBSD__
+	printf("MEM_guarded_printmemlist_stats not implemented on OpenBSD.");
+#else
 	MemHead *membl;
 	MemPrintBlock *pb, *printblock;
 	unsigned int totpb, a, b;
@@ -761,6 +764,7 @@ void MEM_guarded_printmemlist_stats(void)
 #ifdef HAVE_MALLOC_STATS
 	printf("System Statistics:\n");
 	malloc_stats();
+#endif
 #endif
 }
 
