diff options
Diffstat (limited to 'components/dfs/filesystems/devfs/devfs.c')
| -rw-r--r-- | components/dfs/filesystems/devfs/devfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/dfs/filesystems/devfs/devfs.c b/components/dfs/filesystems/devfs/devfs.c index e61da02179..6bfeccb578 100644 --- a/components/dfs/filesystems/devfs/devfs.c +++ b/components/dfs/filesystems/devfs/devfs.c @@ -190,6 +190,7 @@ int dfs_device_fs_open(struct dfs_fd *file) if (device == RT_NULL) return -ENODEV; +#ifdef RT_USING_POSIX if (device->fops) { /* use device fops */ @@ -207,6 +208,7 @@ int dfs_device_fs_open(struct dfs_fd *file) } } else +#endif { result = rt_device_open(device, RT_DEVICE_OFLAG_RDWR); if (result == RT_EOK || result == -RT_ENOSYS) |
