diff mbox series

IPC: Add missing socket.h include

Message ID 20180307165527.5221-1-christian.storm@siemens.com
State Accepted
Headers show
Series IPC: Add missing socket.h include | expand

Commit Message

Storm, Christian March 7, 2018, 4:55 p.m. UTC
AF_LOCAL, SOCK_STREAM, connect(), and socket() are missing.

Signed-off-by: Thomas Zander <thomas.zander@siemens.com>
Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 ipc/network_ipc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Babic March 9, 2018, 9:15 p.m. UTC | #1
On 07/03/2018 17:55, Christian Storm wrote:
> AF_LOCAL, SOCK_STREAM, connect(), and socket() are missing.
> 
> Signed-off-by: Thomas Zander <thomas.zander@siemens.com>
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  ipc/network_ipc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/ipc/network_ipc.c b/ipc/network_ipc.c
> index 4543092..37bb124 100644
> --- a/ipc/network_ipc.c
> +++ b/ipc/network_ipc.c
> @@ -16,6 +16,7 @@
>  #include <sys/ioctl.h>
>  #include <fcntl.h>
>  #include <sys/types.h>
> +#include <sys/socket.h>
>  #include <sys/un.h>
>  #include <arpa/inet.h>
>  #include <netinet/in.h>
> 

Applied to -master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/ipc/network_ipc.c b/ipc/network_ipc.c
index 4543092..37bb124 100644
--- a/ipc/network_ipc.c
+++ b/ipc/network_ipc.c
@@ -16,6 +16,7 @@ 
 #include <sys/ioctl.h>
 #include <fcntl.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <sys/un.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>