aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2020-03-05 16:56:19 +0100
committerJames Cameron <quozl@laptop.org>2020-03-12 14:17:55 +1100
commit59ec9456e5bad8bceb307b981e1ada8e282eb9df (patch)
tree723ac32d01493885e45dc3e96f8a2ab4dd572390
parentefba597469ecba38fadaf079db1beb4060eeac6d (diff)
downloadopenfirmware-59ec9456e5bad8bceb307b981e1ada8e282eb9df.tar.gz
clients/lib: include string.h for memcpy()
Fixes a build warning due to a missing prototype: malloc.c: In function 'realloc': malloc.c:245:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 245 | memcpy(newmem, mem, nbytes); | ^~~~~~
-rw-r--r--clients/lib/malloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/lib/malloc.c b/clients/lib/malloc.c
index 96ef65c0..0904e068 100644
--- a/clients/lib/malloc.c
+++ b/clients/lib/malloc.c
@@ -28,6 +28,7 @@
#define MALLOC
#include "malloc.h"
+#include "string.h"
#ifdef debug
# define ASSERT(p,q) if (!(p)) fatal(q)