mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-26 20:00:50 +00:00
netutils/netlib: Fixes to work when only USRSOCK is enabled.
This commit is contained in:
parent
7441c5422f
commit
234afcd85b
4 changed files with 9 additions and 0 deletions
|
|
@ -68,6 +68,8 @@
|
||||||
# define PF_INETX PF_LOCAL
|
# define PF_INETX PF_LOCAL
|
||||||
#elif defined(CONFIG_NET_PKT)
|
#elif defined(CONFIG_NET_PKT)
|
||||||
# define PF_INETX PF_PACKET
|
# define PF_INETX PF_PACKET
|
||||||
|
#elif defined(CONFIG_NET_USRSOCK)
|
||||||
|
# define PF_INETX PF_INET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@
|
||||||
# define PF_INETX PF_INET6
|
# define PF_INETX PF_INET6
|
||||||
#elif defined(CONFIG_NET_PKT)
|
#elif defined(CONFIG_NET_PKT)
|
||||||
# define PF_INETX PF_PACKET
|
# define PF_INETX PF_PACKET
|
||||||
|
#elif defined(CONFIG_NET_USRSOCK)
|
||||||
|
# define PF_INETX PF_INET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,8 @@
|
||||||
# define PF_INETX PF_LOCAL
|
# define PF_INETX PF_LOCAL
|
||||||
#elif defined(CONFIG_NET_PKT)
|
#elif defined(CONFIG_NET_PKT)
|
||||||
# define PF_INETX PF_PACKET
|
# define PF_INETX PF_PACKET
|
||||||
|
#elif defined(CONFIG_NET_USRSOCK)
|
||||||
|
# define PF_INETX PF_INET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,9 @@
|
||||||
#elif defined(CONFIG_NET_PKT)
|
#elif defined(CONFIG_NET_PKT)
|
||||||
# define PF_INETX PF_PACKET
|
# define PF_INETX PF_PACKET
|
||||||
# define AF_INETX AF_PACKET
|
# define AF_INETX AF_PACKET
|
||||||
|
#elif defined(CONFIG_NET_USRSOCK)
|
||||||
|
# define PF_INETX PF_INET
|
||||||
|
# define AF_INETX AF_INET
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue