summaryrefslogtreecommitdiff
path: root/components/dfs/filesystems
diff options
context:
space:
mode:
authorguo <[email protected]>2021-11-29 10:51:43 +0800
committerGitHub <[email protected]>2021-11-29 10:51:43 +0800
commit4e9744c0acd093efd6fb1da1216d918521d14015 (patch)
tree084b7a54eebb1ad0574111a429d24b51bc9f6271 /components/dfs/filesystems
parent3bc5ffb495a34ee6235e493375770ef2bb4457d3 (diff)
parent7c789d4b11c13e45ab1d2a858c68dabb022eb07c (diff)
Merge pull request #5302 from mysterywolf/posix
[PSE分支] 新增 RT_USING_POSIX_DEVIO
Diffstat (limited to 'components/dfs/filesystems')
-rw-r--r--components/dfs/filesystems/devfs/devfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/filesystems/devfs/devfs.c b/components/dfs/filesystems/devfs/devfs.c
index d615482452..d60f7ddc9b 100644
--- a/components/dfs/filesystems/devfs/devfs.c
+++ b/components/dfs/filesystems/devfs/devfs.c
@@ -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)