Skip to content

Commit 2b83df3

Browse files
eli-schwartzgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5cb05d7 commit 2b83df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ else
10881088
endif
10891089
libgit_dependencies += networking_dependencies
10901090

1091-
foreach symbol : ['inet_ntop', 'inet_pton', 'strerror']
1091+
foreach symbol : ['inet_ntop', 'inet_pton', 'hstrerror']
10921092
if not compiler.has_function(symbol, dependencies: networking_dependencies)
10931093
libgit_c_args += '-DNO_' + symbol.to_upper()
10941094
endif

0 commit comments

Comments
 (0)