Mercurial > hg > octave-nkf
diff liboctave/file-ops.cc @ 10028:52a248732bb6
use mkfifo module from gnulib
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 25 Dec 2009 23:58:08 -0500 |
parents | 0f312e11957e |
children | 62eb444704ba |
line wrap: on
line diff
--- a/liboctave/file-ops.cc +++ b/liboctave/file-ops.cc @@ -135,7 +135,10 @@ int status = -1; -#if defined (HAVE_MKFIFO) + // With gnulib we will always have mkfifo, but some systems like MinGW + // don't have working mkfifo functions. On those systems, mkfifo will + // always return -1 and set errno. + status = ::mkfifo (name.c_str (), mode); if (status < 0) @@ -143,9 +146,6 @@ using namespace std; msg = ::strerror (errno); } -#else - msg = NOT_SUPPORTED ("mkfifo"); -#endif return status; }