diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-05-26 21:56:42 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-06-09 12:16:07 +0200 |
commit | 4c05be0c1b2d02b17665e28f2a7b54dd49e14b92 (patch) | |
tree | b63a3247647d5a36004e58ea8d242b635bd4e8d9 /tests | |
parent | a493a90c5925d44aa11dbad0962d5fcb75001c22 (diff) | |
download | libssh-4c05be0c1b2d02b17665e28f2a7b54dd49e14b92.tar.gz libssh-4c05be0c1b2d02b17665e28f2a7b54dd49e14b92.tar.xz libssh-4c05be0c1b2d02b17665e28f2a7b54dd49e14b92.zip |
Fix compilation without server and sftp modes
(cherry picked from commit 809b3adeba94c1128c7a2ed5354ade305156b8b8)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/torture.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/torture.c b/tests/torture.c index ff57c64a..1dbae46d 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; |