src/file-io.cc patch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

src/file-io.cc patch

Albert Chin-69
src/file-io.cc makes uses of errno but never includes it. This causes
a failure on Solaris and Tru64 UNIX.

--
albert chin ([hidden email])

-- 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"


Reply | Threaded
Open this post in threaded view
|

src/file-io.cc patch

John W. Eaton-6
On 19-Feb-2003, Albert Chin <[hidden email]> wrote:

| src/file-io.cc makes uses of errno but never includes it. This causes
| a failure on Solaris and Tru64 UNIX.
|
| --
| albert chin ([hidden email])
|
| -- 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