meson: fix typo in function check that prevented checking for hstrerror
Nowhere in the codebase do we otherwise check for strerror. Nowhere in the codebase do we make use of -DNO_STRERROR. `strerror` is not a networking function at all. We do utilize `hstrerror` though, which is a networking function we should have been checking here. Signed-off-by: Eli Schwartz <eschwartz@gentoo.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
5cb05d76af
commit
2b83df36f4
@@ -1088,7 +1088,7 @@ else
|
|||||||
endif
|
endif
|
||||||
libgit_dependencies += networking_dependencies
|
libgit_dependencies += networking_dependencies
|
||||||
|
|
||||||
foreach symbol : ['inet_ntop', 'inet_pton', 'strerror']
|
foreach symbol : ['inet_ntop', 'inet_pton', 'hstrerror']
|
||||||
if not compiler.has_function(symbol, dependencies: networking_dependencies)
|
if not compiler.has_function(symbol, dependencies: networking_dependencies)
|
||||||
libgit_c_args += '-DNO_' + symbol.to_upper()
|
libgit_c_args += '-DNO_' + symbol.to_upper()
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user