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>
Eli Schwartz committed
Apr 25, 2025 at 01:25 UTC
2b83df36f4176edb2457c5eb83f7adae990f2df4
1 file changed
+1
-1
meson.build
+1
-1
@@ -1088,7 +1088,7 @@ else
1088
endif
1089
libgit_dependencies += networking_dependencies
1090
1091
-foreach symbol : ['inet_ntop', 'inet_pton', 'strerror']
1091
+foreach symbol : ['inet_ntop', 'inet_pton', 'hstrerror']
1092
if not compiler.has_function(symbol, dependencies: networking_dependencies)
1093
libgit_c_args += '-DNO_' + symbol.to_upper()
1094
endif