From ba1513796b35d518c1c64f19ab4163efe8d87b42 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Mon, 28 Jul 2025 18:09:41 +0200 Subject: [PATCH] missing include >getopt.c:386:30: error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; > ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > 386 | if (optind != argc && !strcmp (argv[optind], "--")) > | ^ Signed-off-by: Nicolas PARLANT --- src/getopt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/getopt.c b/src/getopt.c index a59a013..98a6f33 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -52,6 +52,7 @@ char *alloca (); #endif #include +#include /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C