Skip to content

Commit

Permalink
Fix zlib version check for 1.3 and future version.
Browse files Browse the repository at this point in the history
bz#3604.
  • Loading branch information
daztucker committed Aug 18, 2023
1 parent 25b75e2 commit cb4ed12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ else
[[
int a=0, b=0, c=0, d=0, n, v;
n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
if (n != 3 && n != 4)
if (n < 1)
exit(1);
v = a*1000000 + b*10000 + c*100 + d;
fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
Expand Down

0 comments on commit cb4ed12

Please sign in to comment.