diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-27 10:58:29 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-27 10:58:29 +0000 |
commit | c1c4f299ff8881fe0c8d51790d49bfb5fcd632df (patch) | |
tree | b6d448bb156f7d4025778e5f76740ab7edb30dac /libssh/sftp.c | |
parent | 99946c7bcc3be1a48e2546254e3c7e9ca8375412 (diff) | |
download | libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.tar.gz libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.tar.xz libssh-c1c4f299ff8881fe0c8d51790d49bfb5fcd632df.zip |
Add option to build with or without sftp support.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@618 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r-- | libssh/sftp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c index a32b1cc4..55dd93fc 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -36,7 +36,8 @@ #include "libssh/priv.h" #include "libssh/ssh2.h" #include "libssh/sftp.h" -#ifndef NO_SFTP + +#ifdef WITH_SFTP #define sftp_enter_function() _enter_function(sftp->channel->session) #define sftp_leave_function() _leave_function(sftp->channel->session) @@ -2387,5 +2388,5 @@ SFTP_ATTRIBUTES *sftp_fstat(SFTP_FILE *file) { return NULL; } -#endif /* NO_SFTP */ +#endif /* WITH_SFTP */ |