Merge pull request #500 from AllenX2018/fix-issue426

fix issue #426: fix pipe function in MinGW
This commit is contained in:
Petri Lehtinen 2019-10-17 08:12:42 +03:00 committed by GitHub
commit 0eec0327be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,10 @@
#include <unistd.h>
#endif
#include "util.h"
#ifdef __MINGW32__
#include <fcntl.h>
#define pipe(fds) _pipe(fds, 1024, _O_BINARY)
#endif
static int encode_null_callback(const char *buffer, size_t size, void *data)
{