mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-25 05:25:57 +08:00
revise some RT_USING_POSIX to RT_USING_POSIX_DEVIO
This commit is contained in:
@@ -173,7 +173,7 @@ int dfs_device_fs_open(struct dfs_fd *file)
|
||||
if (device == RT_NULL)
|
||||
return -ENODEV;
|
||||
|
||||
#ifdef RT_USING_POSIX
|
||||
#ifdef RT_USING_POSIX_DEVIO
|
||||
if (device->fops)
|
||||
{
|
||||
/* use device fops */
|
||||
@@ -192,7 +192,7 @@ int dfs_device_fs_open(struct dfs_fd *file)
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#endif /* RT_USING_POSIX_DEVIO */
|
||||
{
|
||||
result = rt_device_open(device, RT_DEVICE_OFLAG_RDWR);
|
||||
if (result == RT_EOK || result == -RT_ENOSYS)
|
||||
|
||||
Reference in New Issue
Block a user