Mercurial > octave
changeset 21590:7f3519e6194a stable
Enable the pipe function on Windows (bug #47614)
* bootstrap.conf (gnulib_modules): Include pipe-posix in the list.
* oct-syscalls.cc (octave_syscalls::pipe): Call gnulib::pipe portability
wrapper, drop HAVE_PIPE condition.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 06 Apr 2016 12:51:00 -0700 |
parents | f3f8e1d3e399 |
children | ec77a07e4220 09a06ed4d1ba |
files | bootstrap.conf liboctave/system/oct-syscalls.cc |
diffstat | 2 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/bootstrap.conf Fri Apr 01 12:04:04 2016 -0400 +++ b/bootstrap.conf Wed Apr 06 12:51:00 2016 -0700 @@ -68,6 +68,7 @@ open opendir pathmax + pipe-posix progname putenv readdir
--- a/liboctave/system/oct-syscalls.cc Fri Apr 01 12:04:04 2016 -0400 +++ b/liboctave/system/oct-syscalls.cc Wed Apr 06 12:51:00 2016 -0700 @@ -233,14 +233,10 @@ int status = -1; -#if defined (HAVE_PIPE) - status = ::pipe (fildes); + status = gnulib::pipe (fildes); if (status < 0) msg = gnulib::strerror (errno); -#else - msg = NOT_SUPPORTED ("pipe"); -#endif return status; }