diff mbox series

um: add include: memset() and memcpy() are in <string.h>

Message ID a1f6271e7c72e49fd863efc4b7126be6598fd4f6.camel@zv.io
State Accepted
Headers show
Series um: add include: memset() and memcpy() are in <string.h> | expand

Commit Message

Zach van Rijn April 1, 2020, 9:30 p.m. UTC
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>
---
 arch/um/os-Linux/file.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Anton Ivanov April 2, 2020, 7:44 a.m. UTC | #1
On 01/04/2020 22:30, Zach van Rijn wrote:
> 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>
> ---
>   arch/um/os-Linux/file.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> 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>
> 

Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
diff mbox series

Patch

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>