Description: fix building with -Werror=implicit-function-declaration
Author: Andreas Beckmann <anbe@debian.org>
Forwarded: https://github.com/jaygreig86/dmitry/pull/14
Last-Update: 2024-06-13
---
--- a/src/dmitry.c
+++ b/src/dmitry.c
@@ -9,6 +9,7 @@
 #include <ctype.h>
 #include <string.h>
 #include <signal.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
--- a/src/file.c
+++ b/src/file.c
@@ -1,4 +1,6 @@
 #include "includes/file.h"
+#include <string.h>
+#include <stdlib.h>
 int file_prep()
 {
 	outputfile[strlen(outputfile)] = '\0';
