Kaynağa Gözat

fix #3893 - thanks matwey

Christian Grothoff 10 yıl önce
ebeveyn
işleme
b118d605ac
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      src/testcurl/https/test_https_session_info.c

+ 4 - 1
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)