RoutingDomain an unsupported option on platforms that don't have it.
- (dtucker) [sftp.c] Expand ifdef for libedit to cover complete_is_remote
too.
+ - (dtucker) [misc.c] Move the routingdomain ifdef to allow the socket to
+ be created.
20091226
- (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1
int
socket_rdomain(int domain, int type, int protocol, int rdomain)
{
-#ifdef USE_ROUTINGDOMAIN
int sock, ipproto = IPPROTO_IP;
if ((sock = socket(domain, type, protocol)) == -1)
if (rdomain == -1)
return (sock);
-
+
+#ifdef USE_ROUTINGDOMAIN
switch (domain) {
case AF_INET6:
ipproto = IPPROTO_IPV6;
}
return (sock);
+#else
+ return (-1);
#endif
}