Mercurial > hg > octave-nkf > gnulib-hg
changeset 11881:9e30ae0c65a0
Oops, fix last commit.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 23 Aug 2009 13:10:40 +0200 |
parents | d5e0338c205a |
children | 52791eb62094 |
files | lib/pipe2.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/pipe2.c +++ b/lib/pipe2.c @@ -89,9 +89,15 @@ #if O_BINARY if (flags & O_BINARY) - setmode (fd, O_BINARY); + { + setmode (fd[1], O_BINARY); + setmode (fd[0], O_BINARY); + } else if (flags & O_TEXT) - setmode (fd, O_TEXT); + { + setmode (fd[1], O_TEXT); + setmode (fd[0], O_TEXT); + } #endif return 0;