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/drivers/src | |
| parent | 3bc5ffb495a34ee6235e493375770ef2bb4457d3 (diff) | |
| parent | 7c789d4b11c13e45ab1d2a858c68dabb022eb07c (diff) | |
Merge pull request #5302 from mysterywolf/posix
[PSE分支] 新增 RT_USING_POSIX_DEVIO
Diffstat (limited to 'components/drivers/src')
| -rw-r--r-- | components/drivers/src/pipe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index bfb07fa950..1d803e9a4c 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -13,7 +13,7 @@ #include <stdint.h> #include <sys/errno.h> -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_DEVIO #include <dfs_file.h> #include <dfs_posix.h> #include <poll.h> @@ -320,7 +320,7 @@ static const struct dfs_file_ops pipe_fops = RT_NULL, pipe_fops_poll, }; -#endif /* end of RT_USING_POSIX */ +#endif /* RT_USING_POSIX_DEVIO */ rt_err_t rt_pipe_open(rt_device_t device, rt_uint16_t oflag) { @@ -479,7 +479,7 @@ rt_pipe_t *rt_pipe_create(const char *name, int bufsz) rt_free(pipe); return RT_NULL; } -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_DEVIO dev->fops = (void*)&pipe_fops; #endif @@ -529,7 +529,7 @@ int rt_pipe_delete(const char *name) return result; } -#ifdef RT_USING_POSIX +#ifdef RT_USING_POSIX_DEVIO int pipe(int fildes[2]) { rt_pipe_t *pipe; @@ -575,4 +575,4 @@ int mkfifo(const char *path, mode_t mode) return 0; } -#endif +#endif /* RT_USING_POSIX_DEVIO */ |
