diff --git a/configs/lc823450-xgevk/src/lc823450_bringup.c b/configs/lc823450-xgevk/src/lc823450_bringup.c index a58aebc92f..98447fb128 100644 --- a/configs/lc823450-xgevk/src/lc823450_bringup.c +++ b/configs/lc823450-xgevk/src/lc823450_bringup.c @@ -45,6 +45,10 @@ #include #include +#ifdef CONFIG_WATCHDOG +# include "lc823450_wdt.h" +#endif + #include "lc823450-xgevk.h" /**************************************************************************** diff --git a/net/inet/ipv4_getsockname.c b/net/inet/ipv4_getsockname.c index 3dfac23c44..eab999a2d0 100644 --- a/net/inet/ipv4_getsockname.c +++ b/net/inet/ipv4_getsockname.c @@ -81,6 +81,7 @@ int ipv4_getsockname(FAR struct socket *psock, FAR struct sockaddr *addr, FAR socklen_t *addrlen) { +#if defined(NET_TCP_HAVE_STACK) || defined(NET_UDP_HAVE_STACK) FAR struct sockaddr_in *outaddr = (FAR struct sockaddr_in *)addr; FAR struct net_driver_s *dev; in_addr_t lipaddr; @@ -98,7 +99,6 @@ int ipv4_getsockname(FAR struct socket *psock, FAR struct sockaddr *addr, return -ENOSYS; } -#if defined(NET_TCP_HAVE_STACK) || defined(NET_UDP_HAVE_STACK) /* Set the port number */ switch (psock->s_type)