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 3d73585..8bbd752 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 8de8bf1..9417d7d 100644 (file)
@@ -1,5 +1,16 @@
 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
        condition was already detected.
        Reported by Ben Pfaff <blp@cs.stanford.edu>.
index 8befdfe..21bcfde 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 ac9cb03..df6b1ea 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 5bd7572..307cab4 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 27eee3b..f1f7ef1 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 469cf47..d8634c3 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 730a155..77643b0 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 5d7b473..3856524 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 109760a..9cdce30 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 3b9b751..27eb0fe 100644 (file)
@@ -13,6 +13,7 @@ full-write
 binary-io
 exit
 gettext-h
+unistd
 
 configure.ac:
 gl_COPY_FILE
index d770874..00f1861 100644 (file)
@@ -15,6 +15,7 @@ wait-process
 gettext-h
 stdbool
 strpbrk
+unistd
 
 configure.ac:
 gl_EXECUTE
index 89d1ec2..dce33bd 100644 (file)
@@ -11,6 +11,7 @@ m4/sig_atomic_t.m4
 Depends-on:
 xalloc
 stdbool
+unistd
 
 configure.ac:
 gl_FATAL_SIGNAL
index f5bbe66..a49f663 100644 (file)
@@ -11,6 +11,7 @@ Depends-on:
 stdbool
 xalloc
 pathname
+unistd
 
 configure.ac:
 gl_FINDPROG
index 1bfb9a8..cbb64d9 100644 (file)
@@ -11,6 +11,7 @@ m4/uintmax_t.m4
 m4/mkdtemp.m4
 
 Depends-on:
+unistd
 
 configure.ac:
 gt_FUNC_MKDTEMP
index 52155ba..0aab325 100644 (file)
@@ -15,6 +15,7 @@ fatal-signal
 gettext-h
 stdbool
 strpbrk
+unistd
 
 configure.ac:
 gl_PIPE
index 9eed9a5..bfb54fa 100644 (file)
@@ -14,6 +14,7 @@ exit
 xalloc
 gettext-h
 stdbool
+unistd
 
 configure.ac:
 gl_WAIT_PROCESS