driver/usersock_dev: Check CONFIG_NET_USRSOCK_DEVICE instead CONFIG_NET_USRSOCK
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
e9ccab2db3
commit
dbb3c768c3
|
@ -23,7 +23,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_USRSOCK)
|
||||
#if defined(CONFIG_NET_USRSOCK_DEVICE)
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
|
@ -566,4 +566,4 @@ void usrsock_register(void)
|
|||
&g_usrsockdev);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NET && CONFIG_NET_USRSOCK */
|
||||
#endif /* CONFIG_NET_USRSOCK_DEVICE */
|
||||
|
|
Loading…
Reference in New Issue