File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -810,6 +810,12 @@ IF(ENABLE_DAP)
810810 #include <curl/curl.h>
811811 int main() {int x = CURLOPT_CHUNK_BGN_FUNCTION;}" HAVE_CURLOPT_CHUNK_BGN_FUNCTION )
812812
813+ # Check to see if CURLINFO_HTTP_CODE is defined.
814+ # It showed up in curl 7.10.7.
815+ CHECK_C_SOURCE_COMPILES ("
816+ #include <curl/curl.h>
817+ int main() {int x = CURLINFO_HTTP_CODE;}" HAVE_CURLINFO_HTTP_CODE )
818+
813819ELSE ()
814820 SET (ENABLE_DAP2 OFF )
815821 SET (ENABLE_DAP4 OFF )
Original file line number Diff line number Diff line change @@ -151,6 +151,9 @@ are set when opening a binary file on Windows. */
151151/* Is CURLINFO_RESPONSE_CODE defined */
152152#cmakedefine HAVE_CURLINFO_RESPONSE_CODE 1
153153
154+ /* Is CURLINFO_HTTP_CODE defined */
155+ #cmakedefine HAVE_CURLINFO_HTTP_CODE 1
156+
154157/* Is CURLOPT_CHUNK_BGN_FUNCTION defined */
155158#cmakedefine HAVE_CURLOPT_CHUNK_BGN_FUNCTION 1
156159
You can’t perform that action at this time.
0 commit comments