[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
src/file-io.cc patch
From: |
John W. Eaton |
Subject: |
src/file-io.cc patch |
Date: |
Wed, 19 Feb 2003 15:45:10 -0600 |
On 19-Feb-2003, Albert Chin <address@hidden> wrote:
| src/file-io.cc makes uses of errno but never includes it. This causes
| a failure on Solaris and Tru64 UNIX.
|
| --
| albert chin (address@hidden)
|
| -- snip snip
| Index: src/file-io.cc
| ===================================================================
| RCS file: /cvs/octave/src/file-io.cc,v
| retrieving revision 1.136
| diff -u -3 -p -r1.136 file-io.cc
| --- src/file-io.cc 2003/02/16 03:24:26 1.136
| +++ src/file-io.cc 2003/02/19 21:31:44
| @@ -49,6 +49,8 @@ Software Foundation, 59 Temple Place - S
| #include <unistd.h>
| #endif
|
| +#include <errno.h>
| +
| #include "file-ops.h"
|
| #include "defun.h"
I used <cerrno> instead, since this is C++, and I think it is
generally better to use the C++ header files that wrap the C header
files.
Thanks,
jwe