]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD: fix build after adding mallinfo support for illumos
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 20 Aug 2025 05:11:11 +0000 (07:11 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 20 Aug 2025 05:11:11 +0000 (07:11 +0200)
coregrind/m_mallocfree.c

index a84bbeb3ad164431f85b9dd4ce0e77c287db4924..a42b1e73711f63993dd208302983871e9454805e 100644 (file)
@@ -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