diff options
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/inet_addr.c | 3 | ||||
-rw-r--r-- | lib/libc/net/inet_network.c | 3 | ||||
-rw-r--r-- | lib/libc/net/inet_ntop.c | 3 | ||||
-rw-r--r-- | lib/libc/net/inet_pton.c | 3 | ||||
-rw-r--r-- | lib/libc/net/res_comp.c | 4 |
5 files changed, 11 insertions, 5 deletions
diff --git a/lib/libc/net/inet_addr.c b/lib/libc/net/inet_addr.c index 2c9aa3051b6..62d46ad664f 100644 --- a/lib/libc/net/inet_addr.c +++ b/lib/libc/net/inet_addr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet_addr.c,v 1.11 2015/01/16 16:48:51 deraadt Exp $ */ +/* $OpenBSD: inet_addr.c,v 1.12 2015/09/13 21:36:08 guenther Exp $ */ /* * ++Copyright++ 1983, 1990, 1993 @@ -172,3 +172,4 @@ inet_aton(const char *cp, struct in_addr *addr) addr->s_addr = htonl(val); return (1); } +DEF_WEAK(inet_aton); diff --git a/lib/libc/net/inet_network.c b/lib/libc/net/inet_network.c index ecf554e4f9a..ef8f21b2800 100644 --- a/lib/libc/net/inet_network.c +++ b/lib/libc/net/inet_network.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet_network.c,v 1.11 2013/11/25 17:29:19 deraadt Exp $ */ +/* $OpenBSD: inet_network.c,v 1.12 2015/09/13 21:36:08 guenther Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -82,3 +82,4 @@ again: } return (val); } +DEF_WEAK(inet_network); diff --git a/lib/libc/net/inet_ntop.c b/lib/libc/net/inet_ntop.c index 722761e2ed9..f44dd080221 100644 --- a/lib/libc/net/inet_ntop.c +++ b/lib/libc/net/inet_ntop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet_ntop.c,v 1.11 2015/01/16 16:48:51 deraadt Exp $ */ +/* $OpenBSD: inet_ntop.c,v 1.12 2015/09/13 21:36:08 guenther Exp $ */ /* Copyright (c) 1996 by Internet Software Consortium. * @@ -55,6 +55,7 @@ inet_ntop(int af, const void *src, char *dst, socklen_t size) } /* NOTREACHED */ } +DEF_WEAK(inet_ntop); /* const char * * inet_ntop4(src, dst, size) diff --git a/lib/libc/net/inet_pton.c b/lib/libc/net/inet_pton.c index f8e299b7b8a..5d7148e8e91 100644 --- a/lib/libc/net/inet_pton.c +++ b/lib/libc/net/inet_pton.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet_pton.c,v 1.9 2015/01/16 16:48:51 deraadt Exp $ */ +/* $OpenBSD: inet_pton.c,v 1.10 2015/09/13 21:36:08 guenther Exp $ */ /* Copyright (c) 1996 by Internet Software Consortium. * @@ -57,6 +57,7 @@ inet_pton(int af, const char *src, void *dst) } /* NOTREACHED */ } +DEF_WEAK(inet_pton); /* int * inet_pton4(src, dst) diff --git a/lib/libc/net/res_comp.c b/lib/libc/net/res_comp.c index a1467c3dbb7..f6f987eb0e8 100644 --- a/lib/libc/net/res_comp.c +++ b/lib/libc/net/res_comp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_comp.c,v 1.16 2015/01/16 18:18:58 millert Exp $ */ +/* $OpenBSD: res_comp.c,v 1.17 2015/09/13 21:36:08 guenther Exp $ */ /* * ++Copyright++ 1985, 1993 @@ -440,6 +440,7 @@ _getshort(const u_char *msgp) GETSHORT(u, msgp); return (u); } +DEF_STRONG(_getshort); #ifdef NeXT /* @@ -461,6 +462,7 @@ _getlong(const u_char *msgp) GETLONG(u, msgp); return (u); } +DEF_STRONG(_getlong); void __putshort(u_int16_t s, u_char *msgp) |