From dd6bc3f3fa53fed92bbe9c51397436e8a4622edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Sat, 8 Dec 2007 17:20:02 +0000 Subject: [PATCH] Glib 2.14 removed the pipe macro in gwin32.h, use _pipe instead. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16622 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/file/io-gncxml-v2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/file/io-gncxml-v2.c b/src/backend/file/io-gncxml-v2.c index 536448f424..ac2b9e8014 100644 --- a/src/backend/file/io-gncxml-v2.c +++ b/src/backend/file/io-gncxml-v2.c @@ -1313,7 +1313,11 @@ try_gz_open (const char *filename, const char *perms, gboolean use_gzip, gz_thread_params_t *params; FILE *file; +#ifdef G_OS_WIN32 + if (_pipe(filedes, 4096, _O_BINARY) < 0) { +#else if (pipe(filedes) < 0) { +#endif g_warning("Pipe call failed. Opening uncompressed file."); return g_fopen(filename, perms); }