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

This commit is contained in:
Gregory Nutt 2017-09-18 13:14:57 -06:00
parent 337ba9d7cc
commit 780435d9f1
2 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,8 @@
#include <nuttx/net/netdev.h>
#include "netdev/netdev.h"
#include "udp/udp.h"
#include "tcp/tcp.h"
#include "inet/inet.h"
#ifdef CONFIG_NET_IPv4

View File

@ -50,6 +50,8 @@
#include <nuttx/net/netdev.h>
#include "netdev/netdev.h"
#include "udp/udp.h"
#include "tcp/tcp.h"
#include "inet/inet.h"
#ifdef CONFIG_NET_IPv6