diff options
| author | guo <[email protected]> | 2021-11-29 10:51:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-29 10:51:43 +0800 |
| commit | 4e9744c0acd093efd6fb1da1216d918521d14015 (patch) | |
| tree | 084b7a54eebb1ad0574111a429d24b51bc9f6271 /components/utilities | |
| parent | 3bc5ffb495a34ee6235e493375770ef2bb4457d3 (diff) | |
| parent | 7c789d4b11c13e45ab1d2a858c68dabb022eb07c (diff) | |
Merge pull request #5302 from mysterywolf/posix
[PSE分支] 新增 RT_USING_POSIX_DEVIO
Diffstat (limited to 'components/utilities')
| -rw-r--r-- | components/utilities/rt-link/src/rtlink_dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/utilities/rt-link/src/rtlink_dev.c b/components/utilities/rt-link/src/rtlink_dev.c index efebf37565..e91736251d 100644 --- a/components/utilities/rt-link/src/rtlink_dev.c +++ b/components/utilities/rt-link/src/rtlink_dev.c @@ -19,7 +19,7 @@ #define RTLINK_SERV(dev) (((struct rt_link_device*)dev)->service) -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_DEVIO #include <dfs_posix.h> #include <poll.h> @@ -148,7 +148,7 @@ const static struct dfs_file_ops _rtlink_fops = RT_NULL, /* getdents */ rtlink_fops_poll, }; -#endif /* RT_USING_POSIX */ +#endif /* RT_USING_POSIX_DEVIO */ /* The event type for the service channel number, * which is used to wake up the service thread in blocking receive mode */ @@ -386,7 +386,7 @@ rt_err_t rt_link_dev_register(struct rt_link_device *rtlink, /* register a character device */ ret = rt_device_register(device, name, flag); -#if defined(RT_USING_POSIX) +#ifdef RT_USING_POSIX_DEVIO /* set fops */ device->fops = &_rtlink_fops; #endif |
