Solving incompatible implicit declaration of built-in function 'strlen'
authorWim Stockman <wim@thinkerwim.org>
Mon, 12 Feb 2024 21:52:50 +0000 (22:52 +0100)
committerWim Stockman <wim@thinkerwim.org>
Mon, 12 Feb 2024 21:52:50 +0000 (22:52 +0100)
compat/getopt.c

index 752f28a..19f50e1 100644 (file)
@@ -34,6 +34,8 @@
 #include <config.h>
 #endif
 
+#include <string.h>
+
 #if !defined (__STDC__) || !__STDC__
 /* This is a separate conditional since some stdc systems
    reject `defined (const)'.  */