Fix non-Linux builds
Various tools are Linuxish and should thus only attempted to build on Linux only. Some features are also Linux-only. Also, libresolv is used on all GNU platforms, notably GNU/Hurd and GNU/kfreeBSD. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
75fbff1326
commit
77216c368f
@@ -963,8 +963,10 @@ traceroute_init(int op, char **argv)
|
||||
if (af == AF_INET) {
|
||||
xmove_fd(xsocket(AF_INET, SOCK_RAW, IPPROTO_ICMP), rcvsock);
|
||||
#if ENABLE_FEATURE_TRACEROUTE_VERBOSE
|
||||
# ifdef IP_PKTINFO
|
||||
/* want recvmsg to report target local address (for -v) */
|
||||
setsockopt_1(rcvsock, IPPROTO_IP, IP_PKTINFO);
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
#if ENABLE_TRACEROUTE6
|
||||
|
Reference in New Issue
Block a user