diff options
author | Petri Lehtinen <petri@digip.org> | 2019-10-17 08:12:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-17 08:12:42 +0300 |
commit | 0eec0327be5d6c488017177a589ee2996c701020 (patch) | |
tree | 32cd6690e9e59a68a4abae1c8206ee6da3339b48 /test | |
parent | e7bed4c109bea6d933dd7cfb1abaed2aca12fc29 (diff) | |
parent | 78ea35c8e91489129c67e37df71ac86022ec59f9 (diff) | |
download | jansson-0eec0327be5d6c488017177a589ee2996c701020.zip jansson-0eec0327be5d6c488017177a589ee2996c701020.tar.gz jansson-0eec0327be5d6c488017177a589ee2996c701020.tar.bz2 |
Merge pull request #500 from AllenX2018/fix-issue426
fix issue #426: fix pipe function in MinGW
Diffstat (limited to 'test')
-rw-r--r-- | test/suites/api/test_dump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/suites/api/test_dump.c b/test/suites/api/test_dump.c index cd4af63..c97a105 100644 --- a/test/suites/api/test_dump.c +++ b/test/suites/api/test_dump.c @@ -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) { |