changeset 10182:0522a65bcd56

assume unistd.h and sys/types.h exist
author John W. Eaton <jwe@octave.org>
date Thu, 21 Jan 2010 15:41:19 -0500
parents a668fbd32e34
children bb97e11ce1ba
files ChangeLog bootstrap.conf configure.ac liboctave/CMatrix.cc liboctave/ChangeLog liboctave/cmd-edit.cc liboctave/cmd-hist.cc liboctave/fCMatrix.cc liboctave/file-ops.cc liboctave/file-ops.h liboctave/file-stat.cc liboctave/file-stat.h liboctave/filemode.c liboctave/kpse.cc liboctave/lo-cutils.c liboctave/lo-sysdep.cc liboctave/lo-utils.cc liboctave/oct-env.cc liboctave/oct-group.cc liboctave/oct-group.h liboctave/oct-passwd.cc liboctave/oct-passwd.h liboctave/oct-syscalls.cc liboctave/oct-syscalls.h liboctave/oct-time.cc liboctave/regex-match.h liboctave/statdefs.h liboctave/sysdir.h liboctave/syswait.h liboctave/tempname.c src/ChangeLog src/DLD-FUNCTIONS/getgrent.cc src/DLD-FUNCTIONS/getpwent.cc src/DLD-FUNCTIONS/getrusage.cc src/DLD-FUNCTIONS/regexp.cc src/cutils.c src/data.cc src/defaults.cc src/dirfns.cc src/file-io.cc src/help.cc src/input.cc src/lex.ll src/oct-hist.cc src/oct-procbuf.cc src/oct-procbuf.h src/octave.cc src/pager.h src/procstream.h src/sighandlers.cc src/syscalls.cc src/sysdep.cc src/toplev.cc src/utils.cc
diffstat 54 files changed, 28 insertions(+), 155 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jan 21 14:22:20 2010 +0100
+++ b/ChangeLog	Thu Jan 21 15:41:19 2010 -0500
@@ -1,3 +1,8 @@
+2010-01-21  John W. Eaton  <jwe@octave.org>
+
+	* bootstrap.conf (gnulib_modules): Include sys_stat in the list.
+	* configure.ac: Don't check for sys/types.h or unistd.h.
+
 2010-01-21  John W. Eaton  <jwe@octave.org>
 
 	* bootstrap.conf (gnulib_modules): Include unistd in the list.
--- a/bootstrap.conf	Thu Jan 21 14:22:20 2010 +0100
+++ b/bootstrap.conf	Thu Jan 21 15:41:19 2010 -0500
@@ -36,6 +36,7 @@
   strftime
   strptime
   symlink
+  sys_stat
   times
   unistd
   unlink
--- a/configure.ac	Thu Jan 21 14:22:20 2010 +0100
+++ b/configure.ac	Thu Jan 21 15:41:19 2010 -0500
@@ -1460,8 +1460,8 @@
   floatingpoint.h grp.h ieeefp.h inttypes.h limits.h locale.h memory.h nan.h \
   ncurses.h poll.h pthread.h pwd.h stdint.h stdlib.h string.h sunmath.h sys/ioctl.h \
   sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \
-  sys/time.h sys/times.h sys/types.h sys/utsname.h sys/utime.h termcap.h \
-  unistd.h utime.h varargs.h)
+  sys/time.h sys/times.h sys/utsname.h sys/utime.h termcap.h \
+  utime.h varargs.h)
 
 ### C++ headers
 
--- a/liboctave/CMatrix.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/CMatrix.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -34,9 +34,7 @@
 #include <vector>
 
 // FIXME
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "Array-util.h"
 #include "CMatrix.h"
--- a/liboctave/ChangeLog	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/ChangeLog	Thu Jan 21 15:41:19 2010 -0500
@@ -1,3 +1,13 @@
+2010-01-21  John W. Eaton  <jwe@octave.org>
+
+	* CMatrix.cc, fCMatrix.cc, cmd-edit.cc, cmd-hist.cc,
+	file-ops.cc, file-ops.h, file-stat.cc, file-stat.h, filemode.c,
+	kpse.cc, lo-cutils.c, lo-sysdep.cc, lo-utils.cc, oct-env.cc,
+	oct-group.cc, oct-group.h, oct-passwd.cc, oct-passwd.h,
+	oct-time.cc, oct-syscalls.cc, oct-syscalls.h, statdefs.h,
+	sysdir.h, syswait.h, tempname.c, regex-match.h:
+	Assume sys/types.h and unistd.h are present (gnulib provides them).
+
 2010-01-21  John W. Eaton  <jwe@octave.org>
 
 	* file-ops.h, file-ops.cc, lo-utils.h, lo-cutils.c: Untabify.
--- a/liboctave/cmd-edit.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/cmd-edit.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -30,12 +30,8 @@
 
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "quit.h"
 
--- a/liboctave/cmd-hist.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/cmd-hist.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -46,12 +46,8 @@
 #include <fcntl.h>
 #endif
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "oct-rl-hist.h"
 
--- a/liboctave/fCMatrix.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/fCMatrix.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -34,9 +34,7 @@
 #include <vector>
 
 // FIXME
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "Array-util.h"
 #include "DET.h"
--- a/liboctave/file-ops.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/file-ops.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -33,9 +33,7 @@
 #include <iostream>
 #include <vector>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include <pathmax.h>
 
--- a/liboctave/file-ops.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/file-ops.h	Thu Jan 21 15:41:19 2010 -0500
@@ -25,9 +25,7 @@
 
 #include <string>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "str-vec.h"
 
--- a/liboctave/file-stat.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/file-stat.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -28,12 +28,8 @@
 #include <cerrno>
 #include <cstring>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "file-ops.h"
 #include "file-stat.h"
--- a/liboctave/file-stat.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/file-stat.h	Thu Jan 21 15:41:19 2010 -0500
@@ -28,9 +28,7 @@
 
 #include "oct-time.h"
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 class
 OCTAVE_API
--- a/liboctave/filemode.c	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/filemode.c	Thu Jan 21 15:41:19 2010 -0500
@@ -20,9 +20,7 @@
 #include <config.h>
 #endif
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <sys/stat.h>
 
 #if !S_IRUSR
--- a/liboctave/kpse.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/kpse.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -105,12 +105,8 @@
 #include <cerrno>
 #include <cassert>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "sysdir.h"
 #include "statdefs.h"
--- a/liboctave/lo-cutils.c	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/lo-cutils.c	Thu Jan 21 15:41:19 2010 -0500
@@ -39,12 +39,8 @@
 #define _XOPEN_SOURCE
 #endif
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include <stdlib.h>
 #include <string.h>
--- a/liboctave/lo-sysdep.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/lo-sysdep.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -28,12 +28,8 @@
 #include <string>
 #include <vector>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
--- a/liboctave/lo-utils.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/lo-utils.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -34,12 +34,8 @@
 #include <limits>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "quit.h"
 
--- a/liboctave/oct-env.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-env.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -47,12 +47,8 @@
 
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "file-ops.h"
 #include "lo-error.h"
--- a/liboctave/oct-group.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-group.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -25,9 +25,7 @@
 #include <config.h>
 #endif
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #ifdef HAVE_GRP_H
 #include <grp.h>
--- a/liboctave/oct-group.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-group.h	Thu Jan 21 15:41:19 2010 -0500
@@ -25,9 +25,7 @@
 
 #include <string>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "str-vec.h"
 
--- a/liboctave/oct-passwd.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-passwd.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -24,9 +24,7 @@
 #include <config.h>
 #endif
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #ifdef HAVE_PWD_H
 #include <pwd.h>
--- a/liboctave/oct-passwd.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-passwd.h	Thu Jan 21 15:41:19 2010 -0500
@@ -25,9 +25,7 @@
 
 #include <string>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 class
 OCTAVE_API
--- a/liboctave/oct-syscalls.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-syscalls.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -30,13 +30,8 @@
 
 #include <string.h>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
-
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
--- a/liboctave/oct-syscalls.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-syscalls.h	Thu Jan 21 15:41:19 2010 -0500
@@ -28,9 +28,7 @@
 
 class string_vector;
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 struct
 OCTAVE_API
--- a/liboctave/oct-time.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/oct-time.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -27,12 +27,8 @@
 #include <climits>
 #include <ctime>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #if defined (OCTAVE_USE_WINDOWS_API)
 #define WIN32_LEAN_AND_MEAN
--- a/liboctave/regex-match.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/regex-match.h	Thu Jan 21 15:41:19 2010 -0500
@@ -29,9 +29,7 @@
 #if defined (__MINGW32__)
 #define __restrict
 #endif
-#if defined (HAVE_SYS_TYPES_H)
 #include <sys/types.h>
-#endif
 #include <regex.h>
 #endif
 
--- a/liboctave/statdefs.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/statdefs.h	Thu Jan 21 15:41:19 2010 -0500
@@ -24,9 +24,7 @@
 #if !defined (octave_statdefs_h)
 #define octave_statdefs_h 1
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
--- a/liboctave/sysdir.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/sysdir.h	Thu Jan 21 15:41:19 2010 -0500
@@ -27,12 +27,8 @@
 
 // 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
 
 #if defined (HAVE_DIRENT_H) || defined (_POSIX_VERSION)
 #include <dirent.h>
--- a/liboctave/syswait.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/syswait.h	Thu Jan 21 15:41:19 2010 -0500
@@ -29,9 +29,7 @@
 
 /* This mess suggested by the autoconf manual.  */
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #if defined (NeXT) && ! defined (_POSIX_SOURCE)
 #define HAVE_SYS_WAIT_H
--- a/liboctave/tempname.c	Thu Jan 21 14:22:20 2010 +0100
+++ b/liboctave/tempname.c	Thu Jan 21 15:41:19 2010 -0500
@@ -28,12 +28,8 @@
 #include <stdlib.h>
 #include <string.h>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include <fcntl.h>
 
--- a/src/ChangeLog	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/ChangeLog	Thu Jan 21 15:41:19 2010 -0500
@@ -1,3 +1,13 @@
+2010-01-21  John W. Eaton  <jwe@octave.org>
+
+	* DLD-FUNCTIONS/getrusage.cc, DLD-FUNCTIONS/getgrent.cc,
+	DLD-FUNCTIONS/getpwent.cc, DLD-FUNCTIONS/regexp.cc, lex.ll,
+	cutils.c, data.cc, defaults.cc, dirfns.cc, file-io.cc, help.cc,
+	input.cc, oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc,
+	pager.h, procstream.h, sighandlers.cc, toplev.cc, syscalls.cc,
+	sysdep.cc, utils.cc: Assume sys/types.h and unistd.h are present
+	(gnulib provides them).
+
 2010-01-21  Jaroslav Hajek  <highegg@gmail.com>
 
 	* ov-base.h (octave_base_value::dim_vector): Return 0x0 by default.
--- a/src/DLD-FUNCTIONS/getgrent.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/DLD-FUNCTIONS/getgrent.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -27,9 +27,7 @@
 
 #include <string>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "oct-group.h"
 
--- a/src/DLD-FUNCTIONS/getpwent.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/DLD-FUNCTIONS/getpwent.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -27,9 +27,7 @@
 
 #include <string>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "oct-passwd.h"
 
--- a/src/DLD-FUNCTIONS/getrusage.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/DLD-FUNCTIONS/getrusage.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -27,9 +27,7 @@
 
 #include "systime.h"
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
--- a/src/DLD-FUNCTIONS/regexp.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/DLD-FUNCTIONS/regexp.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -47,9 +47,7 @@
 #if defined (__MINGW32__)
 #define __restrict
 #endif
-#if defined (HAVE_SYS_TYPES_H)
 #include <sys/types.h>
-#endif
 #include <regex.h>
 #endif
 
--- a/src/cutils.c	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/cutils.c	Thu Jan 21 15:41:19 2010 -0500
@@ -35,12 +35,8 @@
 
 #else
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "systime.h"
 
--- a/src/data.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/data.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -29,9 +29,7 @@
 
 #include "systime.h"
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
--- a/src/defaults.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/defaults.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -31,12 +31,8 @@
 #include <iostream>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "dir-ops.h"
 #include "oct-env.h"
--- a/src/dirfns.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/dirfns.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -34,12 +34,8 @@
 #include <sstream>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "file-ops.h"
 #include "file-stat.h"
--- a/src/file-io.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/file-io.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -47,12 +47,8 @@
 #include <stack>
 #include <vector>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #ifdef HAVE_ZLIB_H
 #include <zlib.h>
--- a/src/help.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/help.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -34,12 +34,8 @@
 #include <sstream>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "cmd-edit.h"
 #include "file-ops.h"
--- a/src/input.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/input.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -36,12 +36,8 @@
 #include <sstream>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "cmd-edit.h"
 #include "file-ops.h"
--- a/src/lex.ll	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/lex.ll	Thu Jan 21 15:41:19 2010 -0500
@@ -47,12 +47,8 @@
 #include <string>
 #include <stack>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "cmd-edit.h"
 #include "quit.h"
--- a/src/oct-hist.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/oct-hist.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -43,12 +43,8 @@
 
 #include <fstream>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "cmd-hist.h"
 #include "file-ops.h"
--- a/src/oct-procbuf.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/oct-procbuf.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -29,12 +29,8 @@
 
 #include <iostream>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "lo-mappers.h"
 #include "lo-utils.h"
--- a/src/oct-procbuf.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/oct-procbuf.h	Thu Jan 21 15:41:19 2010 -0500
@@ -26,9 +26,7 @@
 #if !defined (octave_octave_procbuf_h)
 #define octave_octave_procbuf_h 1
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "c-file-ptr-stream.h"
 
--- a/src/octave.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/octave.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -35,12 +35,8 @@
 #include <fstream>
 #include <iostream>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "cmd-edit.h"
 #include "f77-fcn.h"
--- a/src/pager.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/pager.h	Thu Jan 21 15:41:19 2010 -0500
@@ -28,9 +28,7 @@
 #include <sstream>
 #include <string>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 class
 OCTINTERP_API
--- a/src/procstream.h	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/procstream.h	Thu Jan 21 15:41:19 2010 -0500
@@ -27,9 +27,7 @@
 #include <iosfwd>
 #include <string>
 
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 
 #include "oct-procbuf.h"
 
--- a/src/sighandlers.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/sighandlers.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -30,12 +30,8 @@
 #include <iostream>
 #include <new>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "cmd-edit.h"
 #include "oct-syscalls.h"
--- a/src/syscalls.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/syscalls.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -33,12 +33,8 @@
 #include <cstdio>
 #include <cstring>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #ifdef HAVE_FCNTL_H
 #include <fcntl.h>
--- a/src/sysdep.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/sysdep.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -34,12 +34,8 @@
 #include <iostream>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #if defined (HAVE_TERMIOS_H)
 #include <termios.h>
--- a/src/toplev.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/toplev.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -36,12 +36,8 @@
 #include <sstream>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "cmd-edit.h"
 #include "file-ops.h"
--- a/src/utils.cc	Thu Jan 21 14:22:20 2010 +0100
+++ b/src/utils.cc	Thu Jan 21 15:41:19 2010 -0500
@@ -33,12 +33,8 @@
 #include <iostream>
 #include <string>
 
-#ifdef HAVE_UNISTD_H
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif
 #include <unistd.h>
-#endif
 
 #include "quit.h"