Skip to content

Commit

Permalink
Merge pull request #3 from mattn/win32porting
Browse files Browse the repository at this point in the history
Windows porting
  • Loading branch information
tylertreat committed Sep 1, 2014
2 parents 8dbf580 + 1b91f71 commit e8fba51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/blocking_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
#include <stdlib.h>
#include <unistd.h>

#ifdef _WIN32
#include <stdio.h>
#include <fcntl.h>

int pipe(int pipefd[2])
{
return _pipe(pipefd, BUFSIZ, O_BINARY);
}
#endif

#include "blocking_pipe.h"


Expand Down

0 comments on commit e8fba51

Please sign in to comment.