diff options
author | Yang Tse <yangsita@gmail.com> | 2008-11-29 17:45:16 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-11-29 17:45:16 +0000 |
commit | 39d0b57ebff9b9a710c9a56eb0f99675de8fbc73 (patch) | |
tree | ed2e2391b409997aae261fa5efc9f657408a3944 | |
parent | c036f6ae2da0395a633dc1d11b68879fd6795e19 (diff) |
Further adjust a libssh2 preprocessor function-symbol definition check
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | lib/ssh.h | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index b8eb848b3..f98bded54 100644 --- a/configure.ac +++ b/configure.ac @@ -1476,10 +1476,6 @@ if test X"$OPT_LIBSSH2" != Xno; then LIBSSH2_ENABLED=1 AC_DEFINE(USE_LIBSSH2, 1, [if libSSH2 is in use]) AC_SUBST(USE_LIBSSH2, [1]) - - dnl check for this function only present in libssh2 0.19+ - AC_CHECK_FUNCS( libssh2_session_block_directions ) - ) if test X"$OPT_LIBSSH2" != Xoff && @@ -30,9 +30,9 @@ #endif #if (LIBSSH2_VERSION_NUM >= 0x001300) -# ifndef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS -# define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS 1 -# endif +# define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS 1 +#else +# undef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS #endif extern const struct Curl_handler Curl_handler_scp; |