freebsd-ports/security/pecl-ssh2/files/patch-ssh2.c
Chin-San Huang 3daf1b65ed - Unbreak the incompatible build with libssh2-0.16 and later.
PECL::Bug #11770 Error installing ssh2-0.10
  http://pecl.php.net/bugs/bug.php?id=11779
- Fix libssh2 version checks.
- Update to 0.11

Obtained from:	upstream, oeriksson at mandriva dot com
Reported by:	many
Approved by:	rafan (mentor, implicit)
2007-08-12 06:23:01 +00:00

11 lines
503 B
C

--- ssh2.c 2006-06-07 19:35:34.000000000 +0200
+++ ssh2.c.oden 2007-08-07 17:32:29.000000000 +0200
@@ -484,7 +484,7 @@
ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
-#if LIBSSH2_APINO < 200412301450
+#if LIBSSH2_VERSION_NUM < 0x001000
libssh2_session_methods(session, &kex, &hostkey, &crypt_cs, &crypt_sc, &mac_cs, &mac_sc, &comp_cs, &comp_sc, &lang_cs, &lang_sc);
#else
kex = libssh2_session_methods(session, LIBSSH2_METHOD_KEX);