1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Further adjust a libssh2 preprocessor function-symbol definition check

This commit is contained in:
Yang Tse 2008-11-29 17:45:16 +00:00
parent c036f6ae2d
commit 39d0b57ebf
2 changed files with 3 additions and 7 deletions

View File

@ -1476,10 +1476,6 @@ if test X"$OPT_LIBSSH2" != Xno; then
LIBSSH2_ENABLED=1 LIBSSH2_ENABLED=1
AC_DEFINE(USE_LIBSSH2, 1, [if libSSH2 is in use]) AC_DEFINE(USE_LIBSSH2, 1, [if libSSH2 is in use])
AC_SUBST(USE_LIBSSH2, [1]) 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 && if test X"$OPT_LIBSSH2" != Xoff &&

View File

@ -30,9 +30,9 @@
#endif #endif
#if (LIBSSH2_VERSION_NUM >= 0x001300) #if (LIBSSH2_VERSION_NUM >= 0x001300)
# ifndef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS # define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS 1
# define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS 1 #else
# endif # undef HAVE_LIBSSH2_SESSION_BLOCK_DIRECTIONS
#endif #endif
extern const struct Curl_handler Curl_handler_scp; extern const struct Curl_handler Curl_handler_scp;