Mercurial > hg > octave-lojdl
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 +++ b/liboctave/CMatrix.cc @@ -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 +++ b/liboctave/ChangeLog @@ -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 +++ b/liboctave/cmd-hist.cc @@ -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 +++ b/liboctave/file-ops.cc @@ -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 +++ b/liboctave/filemode.c @@ -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 +++ b/liboctave/mkdir.c @@ -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 +++ b/liboctave/rename.c @@ -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 +++ b/liboctave/rmdir.c @@ -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 +++ b/liboctave/safe-xstat.cin @@ -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 +++ b/liboctave/statdefs.h @@ -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 +++ b/liboctave/sysdir.h @@ -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