diff mbox series

[4/5] IPC: Add missing includes

Message ID 20200205094809.30185-5-ceggers@arri.de
State Accepted
Headers show
Series A bunch of build fixes | expand

Commit Message

Christian Eggers Feb. 5, 2020, 9:48 a.m. UTC
- bzero() requires strings.h
- strncpy(), strnlen() and memset() require string.h
- strndupa() may require compat.h

Fixes: 01f0b52714 ("IPC: factor out pthread-based methods")
Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 ipc/network_ipc.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Stefano Babic Feb. 5, 2020, 10:05 a.m. UTC | #1
On 05.02.20 10:48, Christian Eggers wrote:
> - bzero() requires strings.h
> - strncpy(), strnlen() and memset() require string.h
> - strndupa() may require compat.h
> 
> Fixes: 01f0b52714 ("IPC: factor out pthread-based methods")
> Signed-off-by: Christian Eggers <ceggers@arri.de>
> ---
>  ipc/network_ipc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/ipc/network_ipc.c b/ipc/network_ipc.c
> index 9cfb877..bcdcfad 100644
> --- a/ipc/network_ipc.c
> +++ b/ipc/network_ipc.c
> @@ -8,10 +8,13 @@
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> +#include <string.h>
> +#include <strings.h>
>  #include <unistd.h>
>  #include <sys/socket.h>
>  #include <sys/un.h>
>  #include "network_ipc.h"
> +#include "compat.h"
>  
>  #ifdef CONFIG_SOCKET_CTRL_PATH
>  static char* SOCKET_CTRL_PATH = (char*)CONFIG_SOCKET_CTRL_PATH;
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/ipc/network_ipc.c b/ipc/network_ipc.c
index 9cfb877..bcdcfad 100644
--- a/ipc/network_ipc.c
+++ b/ipc/network_ipc.c
@@ -8,10 +8,13 @@ 
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <strings.h>
 #include <unistd.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 #include "network_ipc.h"
+#include "compat.h"
 
 #ifdef CONFIG_SOCKET_CTRL_PATH
 static char* SOCKET_CTRL_PATH = (char*)CONFIG_SOCKET_CTRL_PATH;