void-packages/srcpkgs/pahole/patches/fix_mallinfo.patch
Andrew Benson 031a251762 New package: pahole-1.12
Closes #10100.
2019-04-02 03:37:47 -03:00

16 lines
338 B
Diff

--- dtagnames.c.orig
+++ dtagnames.c
@@ -16,9 +16,13 @@
static void print_malloc_stats(void)
{
+#ifdef __GLIBC__
struct mallinfo m = mallinfo();
fprintf(stderr, "size: %u\n", m.uordblks);
+#else
+ fprintf(stderr, "malloc stats not available\n");
+#endif
}
static int class__tag_name(struct tag *tag, struct cu *cu __unused,