Add local declarations of bcmp() and bzero() because libkern.h no longer
provides those declarations. It's possible that these can be removed later when we find out whether these functions are actually needed in the kernel, but meanwhile, this allows alpha, hp700 and the powerpc ports (who all build these as part of libkern) to complete their builds.
This commit is contained in:
parent
83969672ba
commit
245ee9af71
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bcmp.c,v 1.2 2007/06/04 18:19:26 christos Exp $ */
|
||||
/* $NetBSD: bcmp.c,v 1.3 2009/03/17 23:42:45 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)bcmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: bcmp.c,v 1.2 2007/06/04 18:19:26 christos Exp $");
|
||||
__RCSID("$NetBSD: bcmp.c,v 1.3 2009/03/17 23:42:45 he Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -46,6 +46,8 @@ __RCSID("$NetBSD: bcmp.c,v 1.2 2007/06/04 18:19:26 christos Exp $");
|
|||
#include <lib/libkern/libkern.h>
|
||||
#endif
|
||||
|
||||
int bcmp(const void *, const void *, size_t);
|
||||
|
||||
/*
|
||||
* bcmp -- vax cmpc3 instruction
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: memset.c,v 1.6 2008/03/29 14:03:22 he Exp $ */
|
||||
/* $NetBSD: memset.c,v 1.7 2009/03/17 23:42:45 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)memset.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: memset.c,v 1.6 2008/03/29 14:03:22 he Exp $");
|
||||
__RCSID("$NetBSD: memset.c,v 1.7 2009/03/17 23:42:45 he Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -66,6 +66,8 @@ __RCSID("$NetBSD: memset.c,v 1.6 2008/03/29 14:03:22 he Exp $");
|
|||
#define VAL 0
|
||||
#define WIDEVAL 0
|
||||
|
||||
void bzero(void *, size_t);
|
||||
|
||||
void
|
||||
bzero(void *dst0, size_t length)
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue