summaryrefslogtreecommitdiff
path: root/lib/libc/net/inet_net_pton.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_net_pton.c
parent5ca6331a4cf210f1043195bfe59d19254252e86f (diff)
Notes
Diffstat (limited to 'lib/libc/net/inet_net_pton.c')
-rw-r--r--lib/libc/net/inet_net_pton.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/net/inet_net_pton.c b/lib/libc/net/inet_net_pton.c
index 6718329b8472..be2d69d32721 100644
--- a/lib/libc/net/inet_net_pton.c
+++ b/lib/libc/net/inet_net_pton.c
@@ -17,7 +17,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static const char orig_rcsid[] = "From Id: inet_net_pton.c,v 1.8 1996/11/21 10:28:12 vixie Exp $";
-static const char rcsid[] = "$Id: inet_net_pton.c,v 1.3 1997/02/22 15:00:18 peter Exp $";
+static const char rcsid[] = "$Id: inet_net_pton.c,v 1.4 1998/06/11 09:02:33 peter Exp $";
#endif
#include <sys/types.h>
@@ -205,3 +205,10 @@ inet_net_pton_ipv4(src, dst, size)
errno = EMSGSIZE;
return (-1);
}
+
+/*
+ * Weak aliases for applications that use certain private entry points,
+ * and fail to include <arpa/inet.h>.
+ */
+#undef inet_net_pton
+__weak_reference(__inet_net_pton, inet_net_pton);