revise some RT_USING_POSIX to RT_USING_POSIX_DEVIO

This commit is contained in:
Meco Man
2021-11-24 09:14:46 -05:00
parent bd80b7a4a1
commit 7c789d4b11
14 changed files with 34 additions and 52 deletions

View File

@@ -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)