Provide mem* for compat with NetBSD to fix LINT

This commit is contained in:
Warner Losh 2000-04-17 22:58:15 +00:00
parent b6c2891d91
commit 03a97e8da7
2 changed files with 15 additions and 3 deletions

View File

@ -228,9 +228,6 @@ int awi_dump_len = 28;
#endif
#ifdef __FreeBSD__
#if __FreeBSD__ < 4
#define memset(p, v, n) bzero(p, n) /*XXX*/
#endif
#if __FreeBSD__ >= 4
devclass_t awi_devclass;

View File

@ -186,3 +186,18 @@ void awi_reset __P((struct awi_softc *));
int awi_activate __P((struct device *, enum devact));
int awi_detach __P((struct awi_softc *));
#endif
#ifdef __FreeBSD__
static __inline int
memcmp(const void *b1, const void *b2, size_t len)
{
return (bcmp(b1, b2, len));
}
static __inline void *
memset(void *b, int c, size_t len)
{
bzero(b, len);
return (b);
}
#endif