diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-03-21 15:37:16 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-03-21 15:37:16 +0000 |
| commit | ab96eeabe8f319206346df2f486e01caabbfd8f4 (patch) | |
| tree | 6a044a277848f8d42cf8a314d701efea03241963 /lib/libc/inet/inet_ntoa.c | |
| parent | 03970c5728f7f53ce03efacc0cf12ef383d7cdda (diff) | |
Notes
Diffstat (limited to 'lib/libc/inet/inet_ntoa.c')
| -rw-r--r-- | lib/libc/inet/inet_ntoa.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/inet/inet_ntoa.c b/lib/libc/inet/inet_ntoa.c index 7fad4b8902a4..f1fe1a9c3145 100644 --- a/lib/libc/inet/inet_ntoa.c +++ b/lib/libc/inet/inet_ntoa.c @@ -35,6 +35,8 @@ static const char sccsid[] = "@(#)inet_ntoa.c 8.1 (Berkeley) 6/4/93"; static const char rcsid[] = "$Id: inet_ntoa.c,v 1.1 2001/03/29 06:31:38 marka Exp $"; #endif /* LIBC_SCCS and not lint */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "port_before.h" @@ -60,3 +62,10 @@ inet_ntoa(struct in_addr in) { (void) inet_ntop(AF_INET, &in, ret, sizeof ret); return (ret); } + +/* + * Weak aliases for applications that use certain private entry points, + * and fail to include <arpa/inet.h>. + */ +#undef inet_ntoa +__weak_reference(__inet_ntoa, inet_ntoa); |
