[DeviceDrivers] Add RT_USING_POSIX condition for pipe.
#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__ */
