summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2020-04-01 16:30:48 -0500
committerRichard Weinberger <richard@nod.at>2020-06-02 22:37:11 +0200
commit38bccfbeb0af039e59eb75fe6d9b2a83cda3d381 (patch)
treea0ad74416932631fe3fb2df1877c13d74fb92b4c /arch/um
parent3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 (diff)
downloadlinux-38bccfbeb0af039e59eb75fe6d9b2a83cda3d381.tar.gz
linux-38bccfbeb0af039e59eb75fe6d9b2a83cda3d381.tar.bz2
linux-38bccfbeb0af039e59eb75fe6d9b2a83cda3d381.zip
um: Add include: memset() and memcpy() are in <string.h>
These two functions are otherwise unknown to the pedantic compiler. Include the correct header to enable the build to succeed. Signed-off-by: Zach van Rijn <me@zv.io> Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/os-Linux/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c
index 26ecbd64c409..044836ad7392 100644
--- a/arch/um/os-Linux/file.c
+++ b/arch/um/os-Linux/file.c
@@ -6,6 +6,7 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>