Mercurial > octave-nkf
changeset 2443:4d941ba99862
[project @ 1996-10-30 18:51:26 by jwe]
author | jwe |
---|---|
date | Wed, 30 Oct 1996 18:51:27 +0000 |
parents | f667d7ec08b9 |
children | ccb101b39cf4 |
files | liboctave/CMatrix.cc liboctave/ChangeLog liboctave/cmd-hist.cc liboctave/file-ops.cc liboctave/filemode.c liboctave/mkdir.c liboctave/rename.c liboctave/rmdir.c liboctave/safe-xstat.cin liboctave/statdefs.h liboctave/sysdir.h liboctave/tempname.c liboctave/utils.cc |
diffstat | 13 files changed, 31 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <iostream.h> -#include <sys/types.h> // XXX FIXME XXX +// XXX FIXME XXX +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif #include "CmplxAEPBAL.h" #include "CmplxDET.h"
--- 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 <jwe@bevo.che.wisc.edu> + * 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<T>::checkelem): Return T() for bogus value, since that is now accepatble syntax, even for built-in types. * Array2.h (T Array2<T>::checkelem): Likewise
--- 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 <fcntl.h> #ifdef HAVE_UNISTD_H +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif #include <unistd.h> #endif
--- 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 <cstring> #ifdef HAVE_UNISTD_H +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif #include <unistd.h> #endif
--- 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 <config.h> #endif +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif #include <sys/stat.h> #if !S_IRUSR
--- 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 <sys/types.h> +#endif #include <sys/stat.h> #include <errno.h> #ifndef errno
--- 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 <sys/types.h> +#endif #include <sys/stat.h> #include <errno.h> #ifndef errno
--- 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 <sys/types.h> +#endif #include <sys/stat.h> #include <errno.h>
--- 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 <config.h> #endif +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif #include <sys/stat.h> #define __static /* empty */
--- 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 <sys/types.h> +#endif #include <sys/stat.h> #ifndef S_ISREG /* Doesn't have POSIX.1 stat stuff. */
--- 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 <sys/types.h> +#endif #include <unistd.h> #endif