mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 19:32:18 +00:00
Don't use exit in PCAP_IS_SUITABLE.
John Spencer reported that musl libc doesn't automatically include <stdlib.h>, as Glibc does, so the configure check was wrongly failing. conftest.c: In function 'main': conftest.c:35:5: error: implicit declaration of function 'exit'
This commit is contained in:
parent
4d6f81122c
commit
cb68c85409
4 changed files with 16 additions and 16 deletions
|
|
@ -41,12 +41,12 @@ int main() {
|
|||
int major, minor1, minor2;
|
||||
sscanf(pcap_version,"%d.%d.%d", &major, &minor1, &minor2);
|
||||
if (major > 0)
|
||||
exit(0);
|
||||
return 0;
|
||||
if (minor1 < 9)
|
||||
exit(1);
|
||||
return 1;
|
||||
if (minor2 < 4)
|
||||
exit(1);
|
||||
exit(0);
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
], [
|
||||
AC_TRY_RUN([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue