mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 20:57:20 +08:00
[libc] Add RT_USING_POSIX macro.
1. Add macro check in rtdebug.h; 2. Use RT_USING_POSIX for poll/select, stdin etc. 3. Split dfs_posix.h to dfs_posix.h, dfs_poll.h and dfs_select.h;
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ rt_err_t rt_device_register(rt_device_t dev,
|
||||
dev->ref_count = 0;
|
||||
dev->open_flag = 0;
|
||||
|
||||
#if defined(RT_USING_DFS) && defined(RT_USING_DFS_DEVFS)
|
||||
#if defined(RT_USING_POSIX)
|
||||
dev->fops = RT_NULL;
|
||||
rt_list_init(&(dev->wait_queue));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user