From 1b91f718a3562368a2867c8e7f3f30f499537d99 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 1 Sep 2014 11:27:36 +0900 Subject: [PATCH] Windows porting --- src/blocking_pipe.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/blocking_pipe.c b/src/blocking_pipe.c index b560272..610bbe4 100644 --- a/src/blocking_pipe.c +++ b/src/blocking_pipe.c @@ -9,6 +9,16 @@ #include #include +#ifdef _WIN32 +#include +#include + +int pipe(int pipefd[2]) +{ + return _pipe(pipefd, BUFSIZ, O_BINARY); +} +#endif + #include "blocking_pipe.h"