# HG changeset patch # User jwe # Date 846701487 0 # Node ID 4d941ba9986215a4aff93f5901a4df72d358382a # Parent f667d7ec08b9d42aa42816e520451566abae6312 [project @ 1996-10-30 18:51:26 by jwe] diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/CMatrix.cc --- a/liboctave/CMatrix.cc Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/CMatrix.cc Wed Oct 30 18:51:27 1996 +0000 @@ -33,7 +33,10 @@ #include -#include // XXX FIXME XXX +// XXX FIXME XXX +#ifdef HAVE_SYS_TYPES_H +#include +#endif #include "CmplxAEPBAL.h" #include "CmplxDET.h" diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/ChangeLog --- a/liboctave/ChangeLog Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/ChangeLog Wed Oct 30 18:51:27 1996 +0000 @@ -1,5 +1,10 @@ Wed Oct 30 11:42:58 1996 John W. Eaton + * CMatrix.cc, cmd-hist.cc, file-ops.cc, file-ops.h, filemode.c, + mkdir.c, rename.c, rmdir.c, safe-lstat.h, safe-stat.h, + safe-xstat.cin, statdefs.h, sysdir.h, tempname.c, utils.cc: Only + include sys/types.h if HAVE_SYS_TYPES_H. + * Array3.h (T Array3::checkelem): Return T() for bogus value, since that is now accepatble syntax, even for built-in types. * Array2.h (T Array2::checkelem): Likewise diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/cmd-hist.cc --- a/liboctave/cmd-hist.cc Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/cmd-hist.cc Wed Oct 30 18:51:27 1996 +0000 @@ -31,7 +31,9 @@ #include #ifdef HAVE_UNISTD_H +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #endif diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/file-ops.cc --- a/liboctave/file-ops.cc Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/file-ops.cc Wed Oct 30 18:51:27 1996 +0000 @@ -30,7 +30,9 @@ #include #ifdef HAVE_UNISTD_H +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #endif diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/filemode.c --- a/liboctave/filemode.c Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/filemode.c Wed Oct 30 18:51:27 1996 +0000 @@ -19,7 +19,9 @@ #include #endif +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #if !S_IRUSR diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/mkdir.c --- a/liboctave/mkdir.c Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/mkdir.c Wed Oct 30 18:51:27 1996 +0000 @@ -21,7 +21,9 @@ #ifndef HAVE_MKDIR +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #include #ifndef errno diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/rename.c --- a/liboctave/rename.c Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/rename.c Wed Oct 30 18:51:27 1996 +0000 @@ -21,7 +21,9 @@ #ifndef HAVE_RENAME +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #include #ifndef errno diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/rmdir.c --- a/liboctave/rmdir.c Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/rmdir.c Wed Oct 30 18:51:27 1996 +0000 @@ -21,7 +21,9 @@ #ifndef HAVE_RMDIR +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #include diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/safe-xstat.cin --- a/liboctave/safe-xstat.cin Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/safe-xstat.cin Wed Oct 30 18:51:27 1996 +0000 @@ -21,7 +21,9 @@ #include #endif +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #define __static /* empty */ diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/statdefs.h --- a/liboctave/statdefs.h Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/statdefs.h Wed Oct 30 18:51:27 1996 +0000 @@ -23,7 +23,9 @@ #if !defined (octave_statdefs_h) #define octave_statdefs_h 1 +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #ifndef S_ISREG /* Doesn't have POSIX.1 stat stuff. */ diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/sysdir.h --- a/liboctave/sysdir.h Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/sysdir.h Wed Oct 30 18:51:27 1996 +0000 @@ -28,7 +28,9 @@ // unistd.h defines _POSIX_VERSION on POSIX.1 systems. #ifdef HAVE_UNISTD_H +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #endif diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/tempname.c --- a/liboctave/tempname.c Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/tempname.c Wed Oct 30 18:51:27 1996 +0000 @@ -29,7 +29,9 @@ #include #ifdef HAVE_UNISTD_H +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #endif diff -r f667d7ec08b9 -r 4d941ba99862 liboctave/utils.cc --- a/liboctave/utils.cc Wed Oct 30 18:46:25 1996 +0000 +++ b/liboctave/utils.cc Wed Oct 30 18:51:27 1996 +0000 @@ -29,7 +29,9 @@ #include #ifdef HAVE_UNISTD_H +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #endif