Files
conan-build/recipes/bison/all/patches/0001-3.8-create_pipe-uses-O_TEXT-not-O_BINARY-mode.patch
Aleksandr Vodyanov 3759e1163f [DO-981] qt package (!15)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/15
2025-02-13 12:25:48 +03:00

30 lines
874 B
Diff

From dffa2a21edeba243ef76b75e0c2081ec15fe95bd Mon Sep 17 00:00:00 2001
From: SSE4 <tomskside@gmail.com>
Date: Wed, 3 Apr 2019 19:48:12 +0700
Subject: [PATCH 3/4] 0003
---
lib/spawn-pipe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/spawn-pipe.c b/lib/spawn-pipe.c
index 3af5167..09e9cad 100644
--- a/lib/spawn-pipe.c
+++ b/lib/spawn-pipe.c
@@ -213,10 +213,10 @@ create_pipe (const char *progname,
xalloc_die ();
if (pipe_stdout)
- if (pipe2_safer (ifd, O_BINARY | O_CLOEXEC) < 0)
+ if (pipe2_safer (ifd, O_TEXT | O_CLOEXEC) < 0)
error (EXIT_FAILURE, errno, _("cannot create pipe"));
if (pipe_stdin)
- if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0)
+ if (pipe2_safer (ofd, O_TEXT | O_CLOEXEC) < 0)
error (EXIT_FAILURE, errno, _("cannot create pipe"));
/* Data flow diagram:
*
--
2.7.4.windows.1