]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add includes for getopt() and strcasecmp() 589/head
authorChristoph Grüninger <foss@grueninger.de>
Tue, 13 May 2025 17:34:04 +0000 (19:34 +0200)
committerChristoph Grüninger <foss@grueninger.de>
Tue, 13 May 2025 17:34:04 +0000 (19:34 +0200)
Found by GCC in C23 mode (implicit-function-declaration).

src/chksum.c
tools/repo2solv.c

index 1f8ab471e207f615ab32101fb9c709fd5e1dbdf3..ded8d567ae5b05047eb9c402d94e08b4c11b87dd 100644 (file)
@@ -9,6 +9,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <strings.h>
 #include <unistd.h>
 
 #include "pool.h"
index af9409d7382d51204c409215eb2788dfde84436f..edf47f35a07de690d88ab8fe470ed6820b06bde9 100644 (file)
@@ -5,6 +5,7 @@
  * for further information
  */
 
+#include <getopt.h>
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>