Skip to content

Commit

Permalink
#ifdef NI_WITHSCOPEID
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Nov 16, 2001
1 parent 3e62e09 commit 31e3441
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions freebsd4/usr.sbin/ppp/ncpaddr.c
Expand Up @@ -393,8 +393,13 @@ ncpaddr_ntowa(const struct ncpaddr *addr)
sin6.sin6_family = AF_INET6;
sin6.sin6_addr = addr->ncpaddr_ip6addr;
adjust_linklocal(&sin6);
#ifdef NI_WITHSCOPEID
if (getnameinfo((struct sockaddr *)&sin6, sizeof sin6, res, sizeof(res),
NULL, 0, NI_WITHSCOPEID | NI_NUMERICHOST) != 0)
#else
if (getnameinfo((struct sockaddr *)&sin6, sizeof sin6, res, sizeof(res),
NULL, 0, NI_NUMERICHOST) != 0)
#endif
break;

return res;
Expand Down

0 comments on commit 31e3441

Please sign in to comment.