netutils/netlib: Fixes to work when only USRSOCK is enabled.

This commit is contained in:
Gregory Nutt 2017-07-14 16:22:14 -06:00
parent 7441c5422f
commit 234afcd85b
4 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,8 @@
# define PF_INETX PF_LOCAL
#elif defined(CONFIG_NET_PKT)
# define PF_INETX PF_PACKET
#elif defined(CONFIG_NET_USRSOCK)
# define PF_INETX PF_INET
#endif
/****************************************************************************

View File

@ -65,6 +65,8 @@
# define PF_INETX PF_INET6
#elif defined(CONFIG_NET_PKT)
# define PF_INETX PF_PACKET
#elif defined(CONFIG_NET_USRSOCK)
# define PF_INETX PF_INET
#endif
/****************************************************************************

View File

@ -67,6 +67,8 @@
# define PF_INETX PF_LOCAL
#elif defined(CONFIG_NET_PKT)
# define PF_INETX PF_PACKET
#elif defined(CONFIG_NET_USRSOCK)
# define PF_INETX PF_INET
#endif
/****************************************************************************

View File

@ -69,6 +69,9 @@
#elif defined(CONFIG_NET_PKT)
# define PF_INETX PF_PACKET
# define AF_INETX AF_PACKET
#elif defined(CONFIG_NET_USRSOCK)
# define PF_INETX PF_INET
# define AF_INETX AF_INET
#endif
/****************************************************************************