summaryrefslogtreecommitdiff
path: root/components/utilities
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-24 09:14:46 -0500
committerMeco Man <[email protected]>2021-11-24 09:47:55 -0500
commit7c789d4b11c13e45ab1d2a858c68dabb022eb07c (patch)
tree084b7a54eebb1ad0574111a429d24b51bc9f6271 /components/utilities
parentbd80b7a4a15a2e97b13bbda69af8e909be544100 (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.c6
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