From 1f5e3dc274fe4616435ff451b5216b5bde217c0d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 8 Jan 2010 19:53:52 +1100 Subject: - (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c] Make RoutingDomain an unsupported option on platforms that don't have it. --- misc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'misc.c') diff --git a/misc.c b/misc.c index d4bdfc0ea..db57f92b2 100644 --- a/misc.c +++ b/misc.c @@ -155,6 +155,7 @@ set_nodelay(int fd) 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) @@ -186,6 +187,7 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) } return (sock); +#endif } /* Characters considered whitespace in strsep calls. */ @@ -273,6 +275,7 @@ a2port(const char *s) return (int)port; } +#ifdef USE_ROUTINGDOMAIN int a2rdomain(const char *s) { @@ -284,6 +287,7 @@ a2rdomain(const char *s) return -1; return (int)rdomain; } +#endif int a2tun(const char *s, int *remote) -- cgit v1.2.3