In a testdir on FreeBSD 5.2.1, I see this gcc warning: ../../gltests/test-net_if.c:78: warning: implicit declaration of function `strcmp'
The fix is trivial: 2023-10-15 Bruno Haible <br...@clisp.org> net_if tests: Fix gcc warning. * tests/test-net_if.c: Include <string.h>. diff --git a/tests/test-net_if.c b/tests/test-net_if.c index 1b8be41943..cbe5fa9a20 100644 --- a/tests/test-net_if.c +++ b/tests/test-net_if.c @@ -32,6 +32,7 @@ SIGNATURE_CHECK (if_nametoindex, unsigned int, (const char *)); #include <stddef.h> /* NULL */ #include <stdio.h> /* fprintf */ +#include <string.h> /* strcmp */ int main (int argc, char *argv[])