commit b118d605ac47c802bd4737476c7d76318c30980e
parent abdc3ae6fc830ec6968b525f3e60c93900a3d068
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 15 Jul 2015 12:15:11 +0000
fix #3893 - thanks matwey
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c
@@ -90,6 +90,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
/**
* negotiate a secure connection with server & query negotiated security parameters
*/
+#if LIBCURL_VERSION_NUM >= 0x072200
static int
test_query_session ()
{
@@ -161,7 +162,7 @@ test_query_session ()
free (cbc.buf);
return 0;
}
-
+#endif
int
main (int argc, char *const *argv)
@@ -177,7 +178,9 @@ main (int argc, char *const *argv)
fprintf (stderr, "Error (code: %u)\n", errorCount);
return -1;
}
+#if LIBCURL_VERSION_NUM >= 0x072200
errorCount += test_query_session ();
+#endif
print_test_result (errorCount, argv[0]);
curl_global_cleanup ();
if (errorCount > 0)