nshlib: fix building when CONFIG_NET_USRSOCK enabled with other link-layer

This commit is contained in:
Jussi Kivilinna 2017-03-31 09:01:49 -06:00 committed by Gregory Nutt
parent da2d782931
commit 3e2743e826

View File

@ -120,6 +120,8 @@
#elif defined(CONFIG_NET_LOCAL)
# define NET_DEVNAME "lo"
# define NSH_HAVE_NETDEV
#elif defined(CONFIG_NET_USRSOCK)
# undef NSH_HAVE_NETDEV
#elif !defined(CONFIG_NET_LOOPBACK)
# error ERROR: No link layer protocol defined
#endif