]> git.ipfire.org Git - thirdparty/git.git/commitdiff
meson: fix typo in function check that prevented checking for hstrerror
authorEli Schwartz <eschwartz@gentoo.org>
Fri, 25 Apr 2025 05:25:44 +0000 (01:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Apr 2025 16:35:55 +0000 (09:35 -0700)
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>
meson.build

index 66b69f24717b99c90eb0b8d46bbfa2196321794f..25bac8d89fc25fa1165ee2a00b2e09d2ea5877d7 100644 (file)
@@ -1088,7 +1088,7 @@ else
 endif
 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)
     libgit_c_args += '-DNO_' + symbol.to_upper()
   endif