From: Paul Floyd Date: Wed, 20 Aug 2025 05:11:11 +0000 (+0200) Subject: FreeBSD: fix build after adding mallinfo support for illumos X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e6d3d6ce41a124999ef76518689a0e4384a92c4;p=thirdparty%2Fvalgrind.git FreeBSD: fix build after adding mallinfo support for illumos --- diff --git a/coregrind/m_mallocfree.c b/coregrind/m_mallocfree.c index a84bbeb3a..a42b1e737 100644 --- a/coregrind/m_mallocfree.c +++ b/coregrind/m_mallocfree.c @@ -2372,6 +2372,7 @@ SizeT VG_(arena_malloc_usable_size) ( ArenaId aid, void* ptr ) return get_pszB(a, b); } +#if defined(VGO_linux) || defined(VGO_solaris) // Implementation of mallinfo(). There is no recent standard that defines // the behavior of mallinfo(). The meaning of the fields in struct mallinfo @@ -2432,6 +2433,7 @@ void VG_(mallinfo) ( ThreadId tid, struct vg_mallinfo* mi ) mi->fordblks = free_blocks_size + VG_(free_queue_volume); mi->keepcost = 0; // may want some value in here } +#endif #if defined(VGO_linux) // The aforementioned older function, mallinfo(), is deprecated since the type