make libkern compile in userland - for testing purposes

This commit is contained in:
drochner 1999-04-13 19:00:30 +00:00
parent d959cff2ca
commit 2269d36c97
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: __assert.c,v 1.3 1999/02/11 15:39:31 pk Exp $ */
/* $NetBSD: __assert.c,v 1.4 1999/04/13 19:00:30 drochner Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou
@ -36,6 +36,9 @@
#ifdef _STANDALONE
#include <lib/libkern/libkern.h>
#else
void __assert __P((const char *, const char *, int, const char *))
__attribute__((__noreturn__)); /* XXX */
#endif
void

View File

@ -1,4 +1,4 @@
/* $NetBSD: inet_addr.c,v 1.3 1999/04/12 17:23:23 drochner Exp $ */
/* $NetBSD: inet_addr.c,v 1.4 1999/04/13 19:00:30 drochner Exp $ */
/* Copyright (c) 1996 by Internet Software Consortium.
*
@ -44,7 +44,11 @@
* Ascii internet address interpretation routine.
* The value returned is in network order.
*/
#if !defined(_KERNEL) && !defined(_STANDALONE)
u_long /* XXX to comply with the prototype in <arpa/inet.h> */
#else
u_int32_t
#endif
inet_addr(src)
const char *src;
{