summaryrefslogtreecommitdiff
path: root/lib/libc/net/inet_ntop.c
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-09-02 00:53:17 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-09-02 00:53:17 +0000
commitcb690d1f0b2725c6a9edfc5f5f3890a610f2927c (patch)
tree9acf25abfb92f96cd897d8d012e281017e5f87d9 /lib/libc/net/inet_ntop.c
parent5ca6331a4cf210f1043195bfe59d19254252e86f (diff)
Notes
Diffstat (limited to 'lib/libc/net/inet_ntop.c')
-rw-r--r--lib/libc/net/inet_ntop.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/net/inet_ntop.c b/lib/libc/net/inet_ntop.c
index c44a973467f8..9e011c393034 100644
--- a/lib/libc/net/inet_ntop.c
+++ b/lib/libc/net/inet_ntop.c
@@ -15,7 +15,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$Id: inet_ntop.c,v 1.3 1997/02/22 15:00:21 peter Exp $";
+static char rcsid[] = "$Id: inet_ntop.c,v 1.4 1998/06/11 09:02:35 peter Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -189,3 +189,10 @@ inet_ntop6(src, dst, size)
strcpy(dst, tmp);
return (dst);
}
+
+/*
+ * Weak aliases for applications that use certain private entry points,
+ * and fail to include <arpa/inet.h>.
+ */
+#undef inet_ntop
+__weak_reference(__inet_ntop, inet_ntop);