summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-01-08 19:53:52 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-01-08 19:53:52 +1100
commit1f5e3dc274fe4616435ff451b5216b5bde217c0d (patch)
tree345cdb5f89e533e8871de0b8527b6cb45cbf9d46 /misc.c
parente67f7db968e376c9971dd3a4d4ab3fae4a06bf78 (diff)
- (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c] Make
RoutingDomain an unsupported option on platforms that don't have it.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 4 insertions, 0 deletions
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)
155int 155int
156socket_rdomain(int domain, int type, int protocol, int rdomain) 156socket_rdomain(int domain, int type, int protocol, int rdomain)
157{ 157{
158#ifdef USE_ROUTINGDOMAIN
158 int sock, ipproto = IPPROTO_IP; 159 int sock, ipproto = IPPROTO_IP;
159 160
160 if ((sock = socket(domain, type, protocol)) == -1) 161 if ((sock = socket(domain, type, protocol)) == -1)
@@ -186,6 +187,7 @@ socket_rdomain(int domain, int type, int protocol, int rdomain)
186 } 187 }
187 188
188 return (sock); 189 return (sock);
190#endif
189} 191}
190 192
191/* Characters considered whitespace in strsep calls. */ 193/* Characters considered whitespace in strsep calls. */
@@ -273,6 +275,7 @@ a2port(const char *s)
273 return (int)port; 275 return (int)port;
274} 276}
275 277
278#ifdef USE_ROUTINGDOMAIN
276int 279int
277a2rdomain(const char *s) 280a2rdomain(const char *s)
278{ 281{
@@ -284,6 +287,7 @@ a2rdomain(const char *s)
284 return -1; 287 return -1;
285 return (int)rdomain; 288 return (int)rdomain;
286} 289}
290#endif
287 291
288int 292int
289a2tun(const char *s, int *remote) 293a2tun(const char *s, int *remote)