summaryrefslogtreecommitdiff
path: root/lib/libc/net/inet_makeaddr.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_makeaddr.c
parent5ca6331a4cf210f1043195bfe59d19254252e86f (diff)
Notes
Diffstat (limited to 'lib/libc/net/inet_makeaddr.c')
-rw-r--r--lib/libc/net/inet_makeaddr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/net/inet_makeaddr.c b/lib/libc/net/inet_makeaddr.c
index 7976188ea5f1..8af7770a3687 100644
--- a/lib/libc/net/inet_makeaddr.c
+++ b/lib/libc/net/inet_makeaddr.c
@@ -60,3 +60,10 @@ inet_makeaddr(net, host)
addr = htonl(addr);
return (*(struct in_addr *)&addr);
}
+
+/*
+ * Weak aliases for applications that use certain private entry points,
+ * and fail to include <arpa/inet.h>.
+ */
+#undef inet_makeaddr
+__weak_reference(__inet_makeaddr, inet_makeaddr);