From: Bruno Haible Date: Mon, 24 Apr 2006 11:38:06 +0000 (+0000) Subject: Include unconditionally. X-Git-Tag: cvs-readonly~2435 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=eb750bc6d41e92b253f1084ce2b8faffddd9441f;p=gnulib.git Include unconditionally. --- diff --git a/ChangeLog b/ChangeLog index 3d7358585..8bbd7526c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-04-23 Bruno Haible + + * 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 Bruno Haible diff --git a/lib/ChangeLog b/lib/ChangeLog index 8de8bf115..9417d7d9d 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,16 @@ 2006-04-23 Bruno Haible + * copy-file.c: Include 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 + * fwriteerror.c (fwriteerror): Call fclose also when an error condition was already detected. Reported by Ben Pfaff . diff --git a/lib/copy-file.c b/lib/copy-file.c index 8befdfe02..21bcfdef6 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -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 , 2001. This program is free software; you can redistribute it and/or modify @@ -28,10 +28,7 @@ #include #include #include - -#ifdef HAVE_UNISTD_H -# include -#endif +#include #if HAVE_UTIME || HAVE_UTIMES # if HAVE_UTIME_H diff --git a/lib/execute.c b/lib/execute.c index ac9cb03ed..df6b1eaa8 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -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 , 2001. This program is free software; you can redistribute it and/or modify @@ -29,10 +29,7 @@ #include #include #include - -#ifdef HAVE_UNISTD_H -# include -#endif +#include #include "error.h" #include "exit.h" diff --git a/lib/fatal-signal.c b/lib/fatal-signal.c index 5bd757258..307cab4e5 100644 --- a/lib/fatal-signal.c +++ b/lib/fatal-signal.c @@ -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 , 2003. This program is free software; you can redistribute it and/or modify @@ -28,9 +28,7 @@ #include #include #include -#if HAVE_UNISTD_H -# include -#endif +#include #include "xalloc.h" diff --git a/lib/findprog.c b/lib/findprog.c index 27eee3ba6..f1f7ef196 100644 --- a/lib/findprog.c +++ b/lib/findprog.c @@ -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 , 2001. This program is free software; you can redistribute it and/or modify @@ -27,10 +27,7 @@ #include #include #include - -#ifdef HAVE_UNISTD_H -# include -#endif +#include #include "xalloc.h" #include "pathname.h" diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index 469cf4718..d8634c3a8 100644 --- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -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 #endif -#if HAVE_UNISTD_H || _LIBC -# include -#endif +#include #if HAVE_GETTIMEOFDAY || _LIBC # if HAVE_SYS_TIME_H || _LIBC diff --git a/lib/pipe.c b/lib/pipe.c index 730a155ba..77643b005 100644 --- a/lib/pipe.c +++ b/lib/pipe.c @@ -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 , 2001. This program is free software; you can redistribute it and/or modify @@ -28,10 +28,7 @@ #include #include #include - -#ifdef HAVE_UNISTD_H -# include -#endif +#include #include "error.h" #include "exit.h" diff --git a/lib/pipe.h b/lib/pipe.h index 5d7b473fe..385652474 100644 --- a/lib/pipe.h +++ b/lib/pipe.h @@ -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 , 2001. This program is free software; you can redistribute it and/or modify @@ -21,9 +21,7 @@ /* Get pid_t. */ #include -#ifdef HAVE_UNISTD_H #include -#endif #include #include diff --git a/lib/wait-process.h b/lib/wait-process.h index 109760a2d..9cdce3047 100644 --- a/lib/wait-process.h +++ b/lib/wait-process.h @@ -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 , 2001. This program is free software; you can redistribute it and/or modify @@ -21,9 +21,7 @@ /* Get pid_t. */ #include -#ifdef HAVE_UNISTD_H #include -#endif #include #include diff --git a/modules/copy-file b/modules/copy-file index 3b9b751eb..27eb0fee1 100644 --- a/modules/copy-file +++ b/modules/copy-file @@ -13,6 +13,7 @@ full-write binary-io exit gettext-h +unistd configure.ac: gl_COPY_FILE diff --git a/modules/execute b/modules/execute index d7708740c..00f186101 100644 --- a/modules/execute +++ b/modules/execute @@ -15,6 +15,7 @@ wait-process gettext-h stdbool strpbrk +unistd configure.ac: gl_EXECUTE diff --git a/modules/fatal-signal b/modules/fatal-signal index 89d1ec2ec..dce33bd42 100644 --- a/modules/fatal-signal +++ b/modules/fatal-signal @@ -11,6 +11,7 @@ m4/sig_atomic_t.m4 Depends-on: xalloc stdbool +unistd configure.ac: gl_FATAL_SIGNAL diff --git a/modules/findprog b/modules/findprog index f5bbe66d5..a49f66366 100644 --- a/modules/findprog +++ b/modules/findprog @@ -11,6 +11,7 @@ Depends-on: stdbool xalloc pathname +unistd configure.ac: gl_FINDPROG diff --git a/modules/mkdtemp b/modules/mkdtemp index 1bfb9a87b..cbb64d961 100644 --- a/modules/mkdtemp +++ b/modules/mkdtemp @@ -11,6 +11,7 @@ m4/uintmax_t.m4 m4/mkdtemp.m4 Depends-on: +unistd configure.ac: gt_FUNC_MKDTEMP diff --git a/modules/pipe b/modules/pipe index 52155ba38..0aab325f1 100644 --- a/modules/pipe +++ b/modules/pipe @@ -15,6 +15,7 @@ fatal-signal gettext-h stdbool strpbrk +unistd configure.ac: gl_PIPE diff --git a/modules/wait-process b/modules/wait-process index 9eed9a518..bfb54fa9e 100644 --- a/modules/wait-process +++ b/modules/wait-process @@ -14,6 +14,7 @@ exit xalloc gettext-h stdbool +unistd configure.ac: gl_WAIT_PROCESS