Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libkern make libkern compile in userland - for testi...



details:   https://anonhg.NetBSD.org/src/rev/888355d8c766
branches:  trunk
changeset: 471861:888355d8c766
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Apr 13 19:00:30 1999 +0000

description:
make libkern compile in userland - for testing purposes

diffstat:

 sys/lib/libkern/__assert.c  |  5 ++++-
 sys/lib/libkern/inet_addr.c |  6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 88c99154f823 -r 888355d8c766 sys/lib/libkern/__assert.c
--- a/sys/lib/libkern/__assert.c        Tue Apr 13 18:59:15 1999 +0000
+++ b/sys/lib/libkern/__assert.c        Tue Apr 13 19:00:30 1999 +0000
@@ -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
diff -r 88c99154f823 -r 888355d8c766 sys/lib/libkern/inet_addr.c
--- a/sys/lib/libkern/inet_addr.c       Tue Apr 13 18:59:15 1999 +0000
+++ b/sys/lib/libkern/inet_addr.c       Tue Apr 13 19:00:30 1999 +0000
@@ -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;
 {



Home | Main Index | Thread Index | Old Index