Include <unistd.h> unconditionally.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2006 11:38:06 +0000 (11:38 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Apr 2006 11:38:06 +0000 (11:38 +0000)
17 files changed:
ChangeLog
lib/ChangeLog
lib/copy-file.c
lib/execute.c
lib/fatal-signal.c
lib/findprog.c
lib/mkdtemp.c
lib/pipe.c
lib/pipe.h
lib/wait-process.h
modules/copy-file
modules/execute
modules/fatal-signal
modules/findprog
modules/mkdtemp
modules/pipe
modules/wait-process

index 3d73585850f603addd53482dbeee58ce930bfbeb..8bbd7526c12a8efd4b03354d69ae26cd9e0f27c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * modules/copy-file: Depend on unistd.
+       * modules/execute: Likewise.
+       * modules/fatal-signal: Likewise.
+       * modules/findprog: Likewise.
+       * modules/mkdtemp : Likewise.
+       * modules/pipe: Likewise.
+       * modules/wait-process: Likewise.
+
 2006-04-23  Claudio Fontana  <claudio@gnu.org>
             Bruno Haible  <bruno@clisp.org>
 
index 8de8bf11511b50fec54a3c6971afb69fc92bc3ff..9417d7d9dcc7606c54e04e9b70c32e9417b6656d 100644 (file)
@@ -1,3 +1,14 @@
+2006-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * copy-file.c: Include <unistd.h> unconditionally.
+       * execute.c: Likewise.
+       * fatal-signal.c: Likewise.
+       * findprog.c: Likewise.
+       * mkdtemp.c: Likewise.
+       * pipe.h: Likewise.
+       * pipe.c: Likewise.
+       * wait-process.h: Likewise.
+
 2006-04-23  Bruno Haible  <bruno@clisp.org>
 
        * fwriteerror.c (fwriteerror): Call fclose also when an error
index 8befdfe02dd618fdc44f775f3d514e614afde774..21bcfdef61069d37823d50042694df06ee4cc4ba 100644 (file)
@@ -1,5 +1,5 @@
 /* Copying of files.
-   Copyright (C) 2001-2003 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
 #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 ac9cb03edda89b9abaf5e5c23476db49a5fb2458..df6b1eaa842cbcc10a8e98ea7ac586fd670061ed 100644 (file)
@@ -1,5 +1,5 @@
 /* Creation of autonomous subprocesses.
-   Copyright (C) 2001-2004 Free Software Foundation, Inc.
+   Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
 #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 5bd757258d1df2c4bc9f127b227e370cf32ba594..307cab4e54f1c9dbcafa182804dcdc655249528a 100644 (file)
@@ -1,5 +1,5 @@
 /* Emergency actions in case of a fatal signal.
-   Copyright (C) 2003-2004 Free Software Foundation, Inc.
+   Copyright (C) 2003-2004, 2006 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2003.
 
    This program is free software; you can redistribute it and/or modify
@@ -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 27eee3ba6b4cd07d3a8cdaf4e78e8e2ea405ab9c..f1f7ef1967922a9944a8c019d150ba7c85cc40b1 100644 (file)
@@ -1,5 +1,5 @@
 /* Locating a program in PATH.
-   Copyright (C) 2001-2004 Free Software Foundation, Inc.
+   Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
 #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 469cf4718641dce93fcff8358e3d7e539c381fae..d8634c3a8dc06ae19b0cabd4d881bfc589dd7c3f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2001-2003 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2001-2003, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This program is free software; you can redistribute it and/or modify
@@ -45,9 +45,7 @@
 # include <inttypes.h>
 #endif
 
-#if HAVE_UNISTD_H || _LIBC
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_GETTIMEOFDAY || _LIBC
 # if HAVE_SYS_TIME_H || _LIBC
index 730a155baeaaef0fd68eb5923b071507c8e37ac1..77643b0051cbab0fade968f46e982dc51031da3c 100644 (file)
@@ -1,5 +1,5 @@
 /* Creation of subprocesses, communicating via pipes.
-   Copyright (C) 2001-2004 Free Software Foundation, Inc.
+   Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
 #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 5d7b473fe9ef15ed863f8b2c58ad1d2989f837c8..3856524740ae162065fdfb5182ac125264e9bb67 100644 (file)
@@ -1,5 +1,5 @@
 /* Creation of subprocesses, communicating via pipes.
-   Copyright (C) 2001-2003 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -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 109760a2d0a08404875734b08ce34b1679758a0b..9cdce30478ad299ca682df8505d3e557e9686b73 100644 (file)
@@ -1,5 +1,5 @@
 /* Waiting for a subprocess to finish.
-   Copyright (C) 2001-2003 Free Software Foundation, Inc.
+   Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2001.
 
    This program is free software; you can redistribute it and/or modify
@@ -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 3b9b751eb3cc2b65464648eb8473b6ad06d0fcb8..27eb0fee1d0ddcbfc9a5dd66e86054f88c0697c5 100644 (file)
@@ -13,6 +13,7 @@ full-write
 binary-io
 exit
 gettext-h
+unistd
 
 configure.ac:
 gl_COPY_FILE
index d7708740cebab8199d4077c99acb930b7162b80e..00f186101e635d85d40ecf515f15b51f45c44ebe 100644 (file)
@@ -15,6 +15,7 @@ wait-process
 gettext-h
 stdbool
 strpbrk
+unistd
 
 configure.ac:
 gl_EXECUTE
index 89d1ec2ec01fdb16425cd78f08df3f5ee227fc4a..dce33bd423c8744a3b55780355d1d5f49a12f93a 100644 (file)
@@ -11,6 +11,7 @@ m4/sig_atomic_t.m4
 Depends-on:
 xalloc
 stdbool
+unistd
 
 configure.ac:
 gl_FATAL_SIGNAL
index f5bbe66d5acef4836541e274a7b31fe7a94c6516..a49f66366904512eb0b365ed1abe250e07f3185d 100644 (file)
@@ -11,6 +11,7 @@ Depends-on:
 stdbool
 xalloc
 pathname
+unistd
 
 configure.ac:
 gl_FINDPROG
index 1bfb9a87b49ef3871c1479bf948312057cb02e16..cbb64d9613e5178a36d91c5083727e5b26f89773 100644 (file)
@@ -11,6 +11,7 @@ m4/uintmax_t.m4
 m4/mkdtemp.m4
 
 Depends-on:
+unistd
 
 configure.ac:
 gt_FUNC_MKDTEMP
index 52155ba38779d2c4f213f15d1ade35ae2ccabe32..0aab325f149750d6ac9fbaab4dad32fa5475fae0 100644 (file)
@@ -15,6 +15,7 @@ fatal-signal
 gettext-h
 stdbool
 strpbrk
+unistd
 
 configure.ac:
 gl_PIPE
index 9eed9a518221f0b92c8efb41dad37eb1b826f695..bfb54fa9e5428bcc21e2e1b17650f52686087248 100644 (file)
@@ -14,6 +14,7 @@ exit
 xalloc
 gettext-h
 stdbool
+unistd
 
 configure.ac:
 gl_WAIT_PROCESS