head 1.1; access; symbols pkgsrc-2026Q3:1.1.0.2 pkgsrc-2026Q3-base:1.1; locks; strict; comment @ * @; 1.1 date 2026.09.11.12.53.13; author drixter; state Exp; branches; next ; commitid ZQGdhSeScFK6GcVG; desc @@ 1.1 log @knot: Patch from upstream to work on SmartOS #980 @ text @$NetBSD$ Patch from upstream to work on SmartOS #980 --- src/contrib/ucw/mempool.c.orig 2026-09-10 17:00:32.049321056 +0000 +++ src/contrib/ucw/mempool.c @@@@ -17,6 +17,7 @@@@ #include #include "contrib/macros.h" #include "contrib/memcheck.h" +#include "contrib/string.h" #include "contrib/ucw/mempool.h" #pragma GCC diagnostic ignored "-Wpointer-arith" @@@@ -246,7 +247,7 @@@@ mp_stats_chain(struct mempool *pool, str void mp_stats(struct mempool *pool, struct mempool_stats *stats) { - bzero(stats, sizeof(*stats)); + memzero(stats, sizeof(*stats)); mp_stats_chain(pool, pool->state.last[0], stats, 0); mp_stats_chain(pool, pool->state.last[1], stats, 1); mp_stats_chain(pool, pool->unused, stats, 2); @