From 780435d9f100076c074bd82881af8ef00a920f4d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 18 Sep 2017 13:14:57 -0600 Subject: [PATCH] Networking: sockgetname() files need to include udp/udp.h and tcp/tcp.h or otherwise NET_UDP_HAVE_STACK and NET_TCP_HAVE_STACK are undefined and the logic is never compiled. Noted by Anthony Merlino --- net/inet/ipv4_getsockname.c | 2 ++ net/inet/ipv6_getsockname.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/net/inet/ipv4_getsockname.c b/net/inet/ipv4_getsockname.c index eab999a2d0..69f49dd508 100644 --- a/net/inet/ipv4_getsockname.c +++ b/net/inet/ipv4_getsockname.c @@ -50,6 +50,8 @@ #include #include "netdev/netdev.h" +#include "udp/udp.h" +#include "tcp/tcp.h" #include "inet/inet.h" #ifdef CONFIG_NET_IPv4 diff --git a/net/inet/ipv6_getsockname.c b/net/inet/ipv6_getsockname.c index 799f511695..3999064eab 100644 --- a/net/inet/ipv6_getsockname.c +++ b/net/inet/ipv6_getsockname.c @@ -50,6 +50,8 @@ #include #include "netdev/netdev.h" +#include "udp/udp.h" +#include "tcp/tcp.h" #include "inet/inet.h" #ifdef CONFIG_NET_IPv6