Provide mem* for compat with NetBSD to fix LINT
This commit is contained in:
parent
b6c2891d91
commit
03a97e8da7
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user