diff options
| author | Tai-hwa Liang <avatar@FreeBSD.org> | 2008-11-25 02:15:09 +0000 |
|---|---|---|
| committer | Tai-hwa Liang <avatar@FreeBSD.org> | 2008-11-25 02:15:09 +0000 |
| commit | ca938a2cb1ca28db764eb6d6afc6fc41f249928f (patch) | |
| tree | ecff218e9185e13ea43dd3bd83759402ad9a8d69 /lib/libutil | |
| parent | 2593534403e11632de8cba98452fbc429d7ed795 (diff) | |
Notes
Diffstat (limited to 'lib/libutil')
| -rw-r--r-- | lib/libutil/realhostname.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libutil/realhostname.c b/lib/libutil/realhostname.c index 044c652458b1..87ac1dda85cb 100644 --- a/lib/libutil/realhostname.c +++ b/lib/libutil/realhostname.c @@ -100,7 +100,9 @@ realhostname_sa(char *host, size_t hsize, struct sockaddr *addr, int addrlen) { int result, error; char buf[NI_MAXHOST]; +#ifdef INET6 struct sockaddr_in lsin; +#endif result = HOSTNAME_INVALIDADDR; |
