dde_bsd: fix missing bzero ref when building -O0

Fixes #1773.
This commit is contained in:
Josef Söntgen 2015-11-11 11:12:13 +01:00 committed by Christian Helmuth
parent e9773f237e
commit c47e9751bd

View File

@ -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 */