diff options
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/if_nametoindex.c | 3 | ||||
-rw-r--r-- | lib/libc/net/name6.c | 6 | ||||
-rw-r--r-- | lib/libc/net/res_query.c | 1 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/net/if_nametoindex.c b/lib/libc/net/if_nametoindex.c index f4748ca..d0ca521 100644 --- a/lib/libc/net/if_nametoindex.c +++ b/lib/libc/net/if_nametoindex.c @@ -28,6 +28,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "namespace.h" #include <sys/types.h> #include <sys/socket.h> #include <sys/sockio.h> @@ -37,6 +38,8 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> #include <errno.h> +#include <unistd.h> +#include "un-namespace.h" /* * From RFC 2553: diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index ca4acb3..ae9eb31 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -177,16 +177,14 @@ static int _mapped_addr_enabled(void); static FILE *_files_open(int *errp); static int _files_ghbyname(void *, void *, va_list); static int _files_ghbyaddr(void *, void *, va_list); -static void _files_shent(int stayopen); -static void _files_ehent(void); #ifdef YP static int _nis_ghbyname(void *, void *, va_list); static int _nis_ghbyaddr(void *, void *, va_list); #endif static int _dns_ghbyname(void *, void *, va_list); static int _dns_ghbyaddr(void *, void *, va_list); -static void _dns_shent(int stayopen); -static void _dns_ehent(void); +static void _dns_shent(int stayopen) __unused; +static void _dns_ehent(void) __unused; #ifdef ICMPNL static int _icmp_ghbyaddr(void *, void *, va_list); #endif /* ICMPNL */ diff --git a/lib/libc/net/res_query.c b/lib/libc/net/res_query.c index 4dde3e4..cd3c832 100644 --- a/lib/libc/net/res_query.c +++ b/lib/libc/net/res_query.c @@ -87,6 +87,7 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include "res_config.h" |