diff options
| author | John Polstra <jdp@FreeBSD.org> | 1998-09-02 00:53:17 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 1998-09-02 00:53:17 +0000 |
| commit | cb690d1f0b2725c6a9edfc5f5f3890a610f2927c (patch) | |
| tree | 9acf25abfb92f96cd897d8d012e281017e5f87d9 /lib/libc/net/inet_addr.c | |
| parent | 5ca6331a4cf210f1043195bfe59d19254252e86f (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/inet_addr.c')
| -rw-r--r-- | lib/libc/net/inet_addr.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/net/inet_addr.c b/lib/libc/net/inet_addr.c index a1ac89951970..7b027daed3a2 100644 --- a/lib/libc/net/inet_addr.c +++ b/lib/libc/net/inet_addr.c @@ -55,7 +55,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; -static char rcsid[] = "$Id$"; +static char rcsid[] = "$Id: inet_addr.c,v 1.5 1997/02/22 15:00:16 peter Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -178,3 +178,12 @@ inet_aton(cp, addr) addr->s_addr = htonl(val); return (1); } + +/* + * Weak aliases for applications that use certain private entry points, + * and fail to include <arpa/inet.h>. + */ +#undef inet_addr +__weak_reference(__inet_addr, inet_addr); +#undef inet_aton +__weak_reference(__inet_aton, inet_aton); |
