Skip to content

Commit 44e6e37

Browse files
committed
[bld] Correct the check for CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
Builds on systems with older versions of libcurl were failing. I was using the check incorrectly. All I needed to do was just test to see that source compiles with a defined macro so I have changed it to that. Signed-off-by: David Cantrell <[email protected]>
1 parent d3a4cfd commit 44e6e37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meson.build

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ curlinfo_src = '''
116116
#include <curl/curl.h>
117117
int main(void)
118118
{
119-
return !(CURL_AT_LEAST_VERSION(7, 55, 0));
119+
int i = CURLINFO_CONTENT_LENGTH_DOWNLOAD_T;
120+
return 0;
120121
}
121122
'''
122123
have_newer_curlinfo = cc.compiles(curlinfo_src,

0 commit comments

Comments
 (0)