Skip to content

Commit

Permalink
[bld] Correct the check for CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
Browse files Browse the repository at this point in the history
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 <dcantrell@redhat.com>
  • Loading branch information
dcantrell committed Apr 30, 2024
1 parent d3a4cfd commit 44e6e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ curlinfo_src = '''
#include <curl/curl.h>
int main(void)
{
return !(CURL_AT_LEAST_VERSION(7, 55, 0));
int i = CURLINFO_CONTENT_LENGTH_DOWNLOAD_T;
return 0;
}
'''
have_newer_curlinfo = cc.compiles(curlinfo_src,
Expand Down

0 comments on commit 44e6e37

Please sign in to comment.