diff options
| author | Meco Man <[email protected]> | 2021-11-24 09:14:46 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-24 09:47:55 -0500 |
| commit | 7c789d4b11c13e45ab1d2a858c68dabb022eb07c (patch) | |
| tree | 084b7a54eebb1ad0574111a429d24b51bc9f6271 /components/utilities | |
| parent | bd80b7a4a15a2e97b13bbda69af8e909be544100 (diff) | |
revise some RT_USING_POSIX to 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 |
