cURL / Mailing Lists / curl-library / Single Mail

curl-library

Missing LIBSSH2_APINO

From: Gisle Vanem <giva_at_bgnett.no>
Date: Tue, 07 Aug 2007 14:44:53 +0200

From libssh2's NEWS:

Version 0.16
...
   o LIBSSH2_APINO was removed from the public header file

But libcurl is stil riddled with this define. How should we code around
that? Maybe something like:

Index: urldata.h
===================================================================
RCS file: /cvsroot/curl/curl/lib/urldata.h,v
retrieving revision 1.338
diff -u -r1.338 urldata.h
--- urldata.h 27 Jul 2007 08:33:32 -0000 1.338
+++ urldata.h 7 Aug 2007 12:42:25 -0000
@@ -121,6 +121,12 @@
 #ifdef HAVE_LIBSSH2_H
 #include <libssh2.h>
 #include <libssh2_sftp.h>
+
+/* LIBSSH2_APINO was removed in version 0.16. */
+#if !defined(LIBSSH2_APINO) && defined(LIBSSH2_VERSION_NUM) && \
+ (LIBSSH2_VERSION_NUM >= 0x001000)
+#define LIBSSH2_APINO 200706012030L
+#endif
 #endif /* HAVE_LIBSSH2_H */

 /* Download buffer size, keep it fairly big for speed reasons */

Not sure what the excact date should be. James?

--gv
Received on 2007-08-07