From 809b3adeba94c1128c7a2ed5354ade305156b8b8 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Thu, 26 May 2011 21:56:42 +0200 Subject: Fix compilation without server and sftp modes --- tests/torture.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/torture.c b/tests/torture.c index ff57c64..1dbae46 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -216,6 +216,8 @@ failed: return NULL; } +#ifdef WITH_SFTP + struct torture_sftp *torture_sftp_session(ssh_session session) { struct torture_sftp *t; char template[] = "/tmp/ssh_torture_XXXXXX"; @@ -282,7 +284,10 @@ void torture_sftp_close(struct torture_sftp *t) { free(t->testdir); free(t); } -#endif +#endif /* WITH_SFTP */ + +#endif /* _WIN32 */ + int torture_libssh_verbosity(void){ return verbosity; -- cgit