aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2019-10-17 08:12:42 +0300
committerGitHub <noreply@github.com>2019-10-17 08:12:42 +0300
commit0eec0327be5d6c488017177a589ee2996c701020 (patch)
tree32cd6690e9e59a68a4abae1c8206ee6da3339b48 /test
parente7bed4c109bea6d933dd7cfb1abaed2aca12fc29 (diff)
parent78ea35c8e91489129c67e37df71ac86022ec59f9 (diff)
downloadjansson-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.c4
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)
{