diff --git a/lib/libc/gen/randomid.c b/lib/libc/gen/randomid.c index 9b79011ede12..b46e422e44a3 100644 --- a/lib/libc/gen/randomid.c +++ b/lib/libc/gen/randomid.c @@ -1,4 +1,4 @@ -/* $NetBSD: randomid.c,v 1.4 2003/09/11 11:24:33 itojun Exp $ */ +/* $NetBSD: randomid.c,v 1.5 2003/09/13 21:27:43 itojun Exp $ */ /* $KAME: ip6_id.c,v 1.8 2003/09/06 13:41:06 itojun Exp $ */ /* $OpenBSD: ip_id.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */ @@ -88,9 +88,11 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: randomid.c,v 1.4 2003/09/11 11:24:33 itojun Exp $"); +__RCSID("$NetBSD: randomid.c,v 1.5 2003/09/13 21:27:43 itojun Exp $"); #endif +#include "namespace.h" + #include #include #include @@ -98,6 +100,12 @@ __RCSID("$NetBSD: randomid.c,v 1.4 2003/09/11 11:24:33 itojun Exp $"); #include #include +#ifdef __weak_alias +__weak_alias(randomid,_randomid) +__weak_alias(randomid_new,_randomid_new) +__weak_alias(randomid_delete,_randomid_delete) +#endif + struct randomconf { const int rc_bits; /* resulting bits */ const u_int32_t rc_max; /* Uniq cycle, avoid blackjack prediction */ diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index f0c7948f78e2..17d418fa593d 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -1,4 +1,4 @@ -/* $NetBSD: namespace.h,v 1.79 2003/06/27 05:21:54 tshiozak Exp $ */ +/* $NetBSD: namespace.h,v 1.80 2003/09/13 21:27:45 itojun Exp $ */ /*- * Copyright (c) 1997-2002 The NetBSD Foundation, Inc. @@ -378,6 +378,9 @@ #define qdiv _qdiv #define radixsort _radixsort #define random _random +#define randomid _randomid +#define randomid_new _randomid_new +#define randomid_delete _randomid_delete #define readdir _readdir #define readdir_r _readdir_r #define realpath _realpath diff --git a/lib/libc/rpc/__rpc_getxid.c b/lib/libc/rpc/__rpc_getxid.c index 9c2072487ca4..ab350d4e966e 100644 --- a/lib/libc/rpc/__rpc_getxid.c +++ b/lib/libc/rpc/__rpc_getxid.c @@ -1,4 +1,4 @@ -/* $NetBSD: __rpc_getxid.c,v 1.2 2003/09/09 22:16:58 itojun Exp $ */ +/* $NetBSD: __rpc_getxid.c,v 1.3 2003/09/13 21:27:46 itojun Exp $ */ /* $OpenBSD: ip_id.c,v 1.6 2002/03/15 18:19:52 millert Exp $ */ /* @@ -32,11 +32,13 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: __rpc_getxid.c,v 1.2 2003/09/09 22:16:58 itojun Exp $"); +__RCSID("$NetBSD: __rpc_getxid.c,v 1.3 2003/09/13 21:27:46 itojun Exp $"); #endif #include +#include "namespace.h" + #include #include #include