mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 15:33:32 +08:00
[DeviceDrivers] Add RT_USING_POSIX condition for pipe.
This commit is contained in:
parent
28433d9d54
commit
75b46cf22b
@ -7,6 +7,8 @@
|
||||
#include <rtthread.h>
|
||||
#include <rtdevice.h>
|
||||
|
||||
#if defined(RT_USING_POSIX)
|
||||
|
||||
#ifndef RT_PIPE_BUFSZ
|
||||
#define PIPE_BUFSZ 512
|
||||
#else
|
||||
@ -32,5 +34,5 @@ typedef struct rt_pipe_device rt_pipe_t;
|
||||
|
||||
rt_pipe_t *rt_pipe_create(const char *name);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* RT_USING_POSIX */
|
||||
#endif /* PIPE_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user