Hi,
  would the following patch be welcome?
I haven't noticed any of the files in config/srclist.txt.

Stepan
2005-10-24  Stepan Kasal  <[EMAIL PROTECTED]>

        * c-stack.m4, copy-file.m4, execute.m4, fatal-signal.m4, findprog.m4,
        getlogin_r.m4, pagealign_alloc.m4, pipe.m4, wait-process.m4:
        Don't bother checking for unistd.h.

2005-10-24  Stepan Kasal  <[EMAIL PROTECTED]>

        * c-stack.c, copy-file.c, execute.c, fatal-signal.c, findprog.c,
        getlogin_r.c, getlogin_r.h, pagealign_alloc.c, pipe.c, pipe.h,
        progreloc.c, wait-process.h: Don't bother checking for unistd.h.

Index: lib/c-stack.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/c-stack.c,v
retrieving revision 1.7
diff -u -r1.7 c-stack.c
--- lib/c-stack.c       19 Sep 2005 17:28:14 -0000      1.7
+++ lib/c-stack.c       24 Oct 2005 14:03:48 -0000
@@ -62,6 +62,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #if HAVE_SYS_RESOURCE_H
 /* Include sys/time.h here, because...
@@ -77,9 +78,6 @@
 # include <ucontext.h>
 #endif
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
 #ifndef STDERR_FILENO
 # define STDERR_FILENO 2
 #endif
Index: lib/copy-file.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/copy-file.c,v
retrieving revision 1.6
diff -u -r1.6 copy-file.c
--- lib/copy-file.c     19 Sep 2005 17:28:14 -0000      1.6
+++ lib/copy-file.c     24 Oct 2005 14:03:48 -0000
@@ -28,10 +28,7 @@
 #include <fcntl.h>
 #include <stddef.h>
 #include <sys/stat.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_UTIME || HAVE_UTIMES
 # if HAVE_UTIME_H
Index: lib/execute.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/execute.c,v
retrieving revision 1.3
diff -u -r1.3 execute.c
--- lib/execute.c       14 May 2005 06:03:58 -0000      1.3
+++ lib/execute.c       24 Oct 2005 14:03:48 -0000
@@ -29,10 +29,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <signal.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "error.h"
 #include "exit.h"
Index: lib/fatal-signal.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fatal-signal.c,v
retrieving revision 1.6
diff -u -r1.6 fatal-signal.c
--- lib/fatal-signal.c  19 Sep 2005 17:28:14 -0000      1.6
+++ lib/fatal-signal.c  24 Oct 2005 14:03:48 -0000
@@ -28,9 +28,7 @@
 #include <stdlib.h>
 #include <signal.h>
 #include <string.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "xalloc.h"
 
Index: lib/findprog.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/findprog.c,v
retrieving revision 1.4
diff -u -r1.4 findprog.c
--- lib/findprog.c      19 Sep 2005 17:28:14 -0000      1.4
+++ lib/findprog.c      24 Oct 2005 14:03:48 -0000
@@ -27,10 +27,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "xalloc.h"
 #include "pathname.h"
Index: lib/getlogin_r.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getlogin_r.c,v
retrieving revision 1.4
diff -u -r1.4 getlogin_r.c
--- lib/getlogin_r.c    19 Sep 2005 17:28:14 -0000      1.4
+++ lib/getlogin_r.c    24 Oct 2005 14:03:48 -0000
@@ -26,10 +26,7 @@
 
 #include <errno.h>
 #include <string.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if !HAVE_DECL_GETLOGIN
 char *getlogin (void);
Index: lib/getlogin_r.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getlogin_r.h,v
retrieving revision 1.5
diff -u -r1.5 getlogin_r.h
--- lib/getlogin_r.h    11 Jul 2005 11:21:55 -0000      1.5
+++ lib/getlogin_r.h    24 Oct 2005 14:03:48 -0000
@@ -19,10 +19,7 @@
 /* Written by Paul Eggert and Derek Price.  */
 
 #include <stddef.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 /* Copies the user's login name to NAME.
    The array pointed to by NAME has room for SIZE bytes.
Index: lib/pagealign_alloc.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/pagealign_alloc.c,v
retrieving revision 1.8
diff -u -r1.8 pagealign_alloc.c
--- lib/pagealign_alloc.c       2 Jul 2005 09:45:08 -0000       1.8
+++ lib/pagealign_alloc.c       24 Oct 2005 14:03:48 -0000
@@ -27,12 +27,8 @@
 
 #include <errno.h>
 #include <stdlib.h>
-
 #include <fcntl.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_MMAP
 # include <sys/mman.h>
Index: lib/pipe.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/pipe.c,v
retrieving revision 1.4
diff -u -r1.4 pipe.c
--- lib/pipe.c  19 Sep 2005 17:28:14 -0000      1.4
+++ lib/pipe.c  24 Oct 2005 14:03:48 -0000
@@ -28,10 +28,7 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #include <signal.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "error.h"
 #include "exit.h"
Index: lib/pipe.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/pipe.h,v
retrieving revision 1.2
diff -u -r1.2 pipe.h
--- lib/pipe.h  14 May 2005 06:03:58 -0000      1.2
+++ lib/pipe.h  24 Oct 2005 14:03:48 -0000
@@ -21,9 +21,7 @@
 
 /* Get pid_t.  */
 #include <stdlib.h>
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 #include <sys/types.h>
 
 #include <stdbool.h>
Index: lib/progreloc.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/progreloc.c,v
retrieving revision 1.8
diff -u -r1.8 progreloc.c
--- lib/progreloc.c     19 Sep 2005 17:28:14 -0000      1.8
+++ lib/progreloc.c     24 Oct 2005 14:03:48 -0000
@@ -29,9 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 #include <sys/stat.h>
 
 #if defined _WIN32 || defined __WIN32__
Index: lib/wait-process.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/wait-process.h,v
retrieving revision 1.3
diff -u -r1.3 wait-process.h
--- lib/wait-process.h  14 May 2005 06:03:58 -0000      1.3
+++ lib/wait-process.h  24 Oct 2005 14:03:48 -0000
@@ -21,9 +21,7 @@
 
 /* Get pid_t.  */
 #include <stdlib.h>
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 #include <sys/types.h>
 
 #include <stdbool.h>
Index: m4/c-stack.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/c-stack.m4,v
retrieving revision 1.5
diff -u -r1.5 c-stack.m4
--- m4/c-stack.m4       23 Jan 2005 08:06:57 -0000      1.5
+++ m4/c-stack.m4       24 Oct 2005 14:03:48 -0000
@@ -136,7 +136,7 @@
    AC_CHECK_DECLS([getcontext], , , [#include <ucontext.h>])
    AC_CHECK_DECLS([sigaltstack], , , [#include <signal.h>])
 
-   AC_CHECK_HEADERS_ONCE(sys/time.h unistd.h)
+   AC_CHECK_HEADERS_ONCE(sys/time.h)
    AC_CHECK_HEADERS(sys/resource.h ucontext.h)
 
    AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], , , [#include <signal.h>])
Index: m4/copy-file.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/copy-file.m4,v
retrieving revision 1.3
diff -u -r1.3 copy-file.m4
--- m4/copy-file.m4     18 Jan 2005 13:07:56 -0000      1.3
+++ m4/copy-file.m4     24 Oct 2005 14:03:48 -0000
@@ -6,6 +6,6 @@
 
 AC_DEFUN([gl_COPY_FILE],
 [
-  AC_CHECK_HEADERS_ONCE(unistd.h utime.h)
+  AC_CHECK_HEADERS_ONCE(utime.h)
   AC_CHECK_FUNCS(chown utime utimes)
 ])
Index: m4/execute.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/execute.m4,v
retrieving revision 1.2
diff -u -r1.2 execute.m4
--- m4/execute.m4       18 Jan 2005 13:07:56 -0000      1.2
+++ m4/execute.m4       24 Oct 2005 14:03:48 -0000
@@ -9,7 +9,6 @@
   dnl Prerequisites of lib/execute.c.
   AC_REQUIRE([AC_C_INLINE])
   AC_REQUIRE([AC_TYPE_MODE_T])
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_REQUIRE([AC_FUNC_FORK])
   AC_CHECK_FUNCS(posix_spawn)
 ])
Index: m4/fatal-signal.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/fatal-signal.m4,v
retrieving revision 1.4
diff -u -r1.4 fatal-signal.m4
--- m4/fatal-signal.m4  18 Jan 2005 13:07:56 -0000      1.4
+++ m4/fatal-signal.m4  24 Oct 2005 14:03:48 -0000
@@ -8,6 +8,5 @@
 [
   AC_REQUIRE([gt_SIGNALBLOCKING])
   AC_REQUIRE([gt_TYPE_SIG_ATOMIC_T])
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CHECK_FUNCS(raise sigaction)
 ])
Index: m4/findprog.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/findprog.m4,v
retrieving revision 1.2
diff -u -r1.2 findprog.m4
--- m4/findprog.m4      18 Jan 2005 13:07:56 -0000      1.2
+++ m4/findprog.m4      24 Oct 2005 14:03:48 -0000
@@ -7,6 +7,5 @@
 AC_DEFUN([gl_FINDPROG],
 [
   dnl Prerequisites of lib/findprog.c.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_REQUIRE([gl_FUNC_EACCESS])
 ])
Index: m4/getlogin_r.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getlogin_r.m4,v
retrieving revision 1.2
diff -u -r1.2 getlogin_r.m4
--- m4/getlogin_r.m4    4 Sep 2005 00:05:33 -0000       1.2
+++ m4/getlogin_r.m4    24 Oct 2005 14:03:48 -0000
@@ -28,6 +28,5 @@
 
 AC_DEFUN([gl_PREREQ_GETLOGIN_R],
 [
-  AC_CHECK_HEADERS_ONCE([unistd.h])
   AC_CHECK_DECLS_ONCE([getlogin getlogin_r])
 ])
Index: m4/pagealign_alloc.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/pagealign_alloc.m4,v
retrieving revision 1.3
diff -u -r1.3 pagealign_alloc.m4
--- m4/pagealign_alloc.m4       2 Jul 2005 09:58:35 -0000       1.3
+++ m4/pagealign_alloc.m4       24 Oct 2005 14:03:48 -0000
@@ -20,5 +20,4 @@
   AC_REQUIRE([gl_FUNC_MMAP_ANON])
   AC_REQUIRE([gl_GETPAGESIZE])
   AC_CHECK_FUNCS_ONCE([posix_memalign])
-  AC_CHECK_HEADERS_ONCE([unistd.h])
 ])
Index: m4/pipe.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/pipe.m4,v
retrieving revision 1.2
diff -u -r1.2 pipe.m4
--- m4/pipe.m4  18 Jan 2005 13:07:56 -0000      1.2
+++ m4/pipe.m4  24 Oct 2005 14:03:48 -0000
@@ -6,8 +6,6 @@
 
 AC_DEFUN([gl_PIPE],
 [
-  dnl Prerequisites of lib/pipe.h.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   dnl Prerequisites of lib/pipe.c.
   AC_REQUIRE([AC_C_INLINE])
   AC_REQUIRE([AC_TYPE_MODE_T])
Index: m4/wait-process.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/wait-process.m4,v
retrieving revision 1.3
diff -u -r1.3 wait-process.m4
--- m4/wait-process.m4  18 Jan 2005 13:07:56 -0000      1.3
+++ m4/wait-process.m4  24 Oct 2005 14:03:48 -0000
@@ -6,8 +6,6 @@
 
 AC_DEFUN([gl_WAIT_PROCESS],
 [
-  dnl Prerequisites of lib/wait-process.h.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   dnl Prerequisites of lib/wait-process.c.
   AC_REQUIRE([gt_TYPE_SIG_ATOMIC_T])
   AC_CHECK_FUNCS(waitid)
_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to