libssh2: detect features based on version, not configure checks

... so that non-configure builds get the correct functions too based on
the libssh2 version used.
This commit is contained in:
Daniel Stenberg 2014-11-09 15:42:12 +01:00
parent 18e1a3022d
commit 9dbbba9976
4 changed files with 22 additions and 22 deletions

View file

@ -99,13 +99,6 @@
# endif
#endif
/* Feature detection based on version numbers to better work with
non-configure platforms */
#if LIBSSH2_VERSION_NUM >= 0x010206
/* libssh2_knownhost_checkp was added in 1.2.6 */
#define HAVE_LIBSSH2_KNOWNHOST_CHECKP
#endif
#ifndef PATH_MAX
#define PATH_MAX 1024 /* just an extra precaution since there are systems that
have their definition hidden well */