@@ -0,0 +1,14 @@
+--- ssh2.c.orig 2005-11-02 00:40:23.000000000 +0100
++++ ssh2.c 2008-04-24 14:07:22.000000000 +0200
+@@ -477,8 +477,10 @@
+
+ ZEND_FETCH_RESOURCE(session, LIBSSH2_SESSION*, &zsession, -1, PHP_SSH2_SESSION_RES_NAME, le_ssh2_session);
+
+-#if LIBSSH2_APINO < 200412301450
++#ifdef LIBSSH2_APINO
++# if LIBSSH2_APINO < 200412301450
+ libssh2_session_methods(session, &kex, &hostkey, &crypt_cs, &crypt_sc, &mac_cs, &mac_sc, &comp_cs, &comp_sc, &lang_cs, &lang_sc);
++# endif
+ #else
+ kex = libssh2_session_methods(session, LIBSSH2_METHOD_KEX);
+ hostkey = libssh2_session_methods(session, LIBSSH2_METHOD_HOSTKEY);
|