bug-time
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] include string.h for memset()


From: Khem Raj
Subject: [PATCH] include string.h for memset()
Date: Mon, 15 Aug 2022 07:49:21 -0700

Fixes implicit function declaration warning e.g.

resuse.c:103:3: error: call to undeclared library function 'memset' with type 
'void *(void *, int, unsigned long)'

---
 src/resuse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/resuse.c b/src/resuse.c
index cf5a08c..9d3d18a 100644
--- a/src/resuse.c
+++ b/src/resuse.c
@@ -22,6 +22,7 @@
 */ 
 
 #include "config.h"
+#include <string.h>
 #include <sys/time.h>
 #include <sys/wait.h>
 #include <sys/resource.h>
-- 
2.37.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]