diff common-channel.c @ 156:8c2b3506f112

Rearrange preprocessor parts so that compilation with various options disabled works OK.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 22 Dec 2004 15:37:50 +0000
parents 2e9d1f29c50f
children 0cfba3034be5
line wrap: on
line diff
--- a/common-channel.c	Mon Dec 20 14:46:12 2004 +0000
+++ b/common-channel.c	Wed Dec 22 15:37:50 2004 +0000
@@ -921,7 +921,7 @@
 	TRACE(("leave send_msg_channel_open_confirmation"));
 }
 
-#ifdef USING_LISTENERS
+#if defined(USING_LISTENERS) || defined(DROPBEAR_CLIENT)
 /* Create a new channel, and start the open request. This is intended
  * for X11, agent, tcp forwarding, and should be filled with channel-specific
  * options, with the calling function calling encrypt_packet() after
@@ -1006,6 +1006,7 @@
 
 	removechannel(channel);
 }
+#endif /* USING_LISTENERS */
 
 /* close a stdout/stderr fd */
 static void closeoutfd(struct Channel * channel, int fd) {
@@ -1057,5 +1058,3 @@
 		channel->errfd = FD_CLOSED;
 	}
 }
-
-#endif /* USING_LISTENERS */