mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
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:
committed by
Petro Karashchenko
parent
e9ccab2db3
commit
dbb3c768c3
@@ -23,7 +23,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_USRSOCK)
|
#if defined(CONFIG_NET_USRSOCK_DEVICE)
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
@@ -566,4 +566,4 @@ void usrsock_register(void)
|
|||||||
&g_usrsockdev);
|
&g_usrsockdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_NET && CONFIG_NET_USRSOCK */
|
#endif /* CONFIG_NET_USRSOCK_DEVICE */
|
||||||
|
|||||||
Reference in New Issue
Block a user