diff options
author | ume <ume@FreeBSD.org> | 2006-03-21 15:37:16 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-03-21 15:37:16 +0000 |
commit | 03859cff097cd048acc43548684969ea0b3e7f7e (patch) | |
tree | 6a044a277848f8d42cf8a314d701efea03241963 /lib/libc/inet/inet_makeaddr.c | |
parent | 92fc9582cfae8294317ce04ae7e2d14f94dd3ca8 (diff) | |
download | FreeBSD-src-03859cff097cd048acc43548684969ea0b3e7f7e.zip FreeBSD-src-03859cff097cd048acc43548684969ea0b3e7f7e.tar.gz |
- Merge our local changes.
- Exclude unnecessary functions for us.
Diffstat (limited to 'lib/libc/inet/inet_makeaddr.c')
-rw-r--r-- | lib/libc/inet/inet_makeaddr.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/inet/inet_makeaddr.c b/lib/libc/inet/inet_makeaddr.c index 6e4ecc3..fa6cffe 100644 --- a/lib/libc/inet/inet_makeaddr.c +++ b/lib/libc/inet/inet_makeaddr.c @@ -34,6 +34,8 @@ #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)inet_makeaddr.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "port_before.h" @@ -49,7 +51,7 @@ static const char sccsid[] = "@(#)inet_makeaddr.c 8.1 (Berkeley) 6/4/93"; */ struct in_addr inet_makeaddr(net, host) - u_long net, host; + in_addr_t net, host; { struct in_addr a; @@ -64,3 +66,10 @@ inet_makeaddr(net, host) a.s_addr = htonl(a.s_addr); return (a); } + +/* + * 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); |