From c47e9751bdde72189c961fa5b4c09209fa305a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Wed, 11 Nov 2015 11:12:13 +0100 Subject: [PATCH] dde_bsd: fix missing bzero ref when building -O0 Fixes #1773. --- repos/dde_bsd/src/lib/audio/mem.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/repos/dde_bsd/src/lib/audio/mem.cc b/repos/dde_bsd/src/lib/audio/mem.cc index 2d3eb9c946..1d649eb29f 100644 --- a/repos/dde_bsd/src/lib/audio/mem.cc +++ b/repos/dde_bsd/src/lib/audio/mem.cc @@ -364,6 +364,14 @@ extern "C" void free(void *addr, int type, size_t size) ** sys/systm.h ** *****************/ +extern "C" void bzero(void *b, size_t len) +{ + if (b == nullptr) return; + + Genode::memset(b, 0, len); +} + + extern "C" void bcopy(const void *src, void *dst, size_t len) { /* XXX may overlap */