summaryrefslogtreecommitdiffstats
path: root/sample.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-20 22:50:45 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-20 22:50:45 +0200
commit8843d8b68d180dbc3b0edbfb47ded3fadbe86988 (patch)
tree6b6f777e61858609d0f17011322011630b123af5 /sample.c
parent2aec79ce36999649886c23bbefa58dfa62529fc5 (diff)
downloadlibssh-8843d8b68d180dbc3b0edbfb47ded3fadbe86988.tar.gz
libssh-8843d8b68d180dbc3b0edbfb47ded3fadbe86988.tar.xz
libssh-8843d8b68d180dbc3b0edbfb47ded3fadbe86988.zip
Fix sol8 + ss11 compile errors.
Thanks to tysonite@gmail.com.
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sample.c b/sample.c
index a2b25fc..3847f04 100644
--- a/sample.c
+++ b/sample.c
@@ -555,8 +555,10 @@ int main(int argc, char **argv){
else
batch_shell(session);
}
+#ifdef WITH_SFTP
else
- do_sftp(session);
+ do_sftp(session);
+#endif
if(!sftp && !cmds[0])
do_cleanup(0);
ssh_disconnect(session);