* atexit.c, chdir-long.c chown.c, fchown-stub.c, getgroups.c, gettimeofday.c, lchown.c, lstat.c, mkdir.c, mkstemp.c, nanosleep.c, openat.c, raise.c, readtokens0.c, readutmp.c, unlinkdir.c: Guard inclusion of config.h with HAVE_CONFIG_H. Index: lib/atexit.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/atexit.c,v retrieving revision 1.3 diff -u -r1.3 atexit.c --- lib/atexit.c 8 Sep 2003 23:03:20 -0000 1.3 +++ lib/atexit.c 13 Sep 2005 15:13:10 -0000 @@ -1,7 +1,9 @@ /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ /* This function is in the public domain. --Mike Stump. */ -#include "config.h" +#ifdef HAVE_CONFIG_H +# include +#endif int atexit (void (*f) (void)) Index: lib/chdir-long.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/chdir-long.c,v retrieving revision 1.5 diff -u -r1.5 chdir-long.c --- lib/chdir-long.c 14 May 2005 06:03:57 -0000 1.5 +++ lib/chdir-long.c 14 Sep 2005 12:30:17 -0000 @@ -17,7 +17,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include "chdir-long.h" Index: lib/chown.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/chown.c,v retrieving revision 1.14 diff -u -r1.14 chown.c --- lib/chown.c 2 Jul 2005 09:45:08 -0000 1.14 +++ lib/chown.c 13 Sep 2005 15:13:10 -0000 @@ -18,7 +18,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif /* Disable the definition of chown to rpl_chown (from config.h) in this file. Otherwise, we'd get conflicting prototypes for rpl_chown on Index: lib/fchown-stub.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/fchown-stub.c,v retrieving revision 1.1 diff -u -r1.1 fchown-stub.c --- lib/fchown-stub.c 10 Jul 2004 06:29:25 -0000 1.1 +++ lib/fchown-stub.c 13 Sep 2005 15:13:10 -0000 @@ -1,4 +1,6 @@ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include #include Index: lib/getgroups.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/getgroups.c,v retrieving revision 1.11 diff -u -r1.11 getgroups.c --- lib/getgroups.c 14 May 2005 06:03:58 -0000 1.11 +++ lib/getgroups.c 13 Sep 2005 15:13:10 -0000 @@ -17,7 +17,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include #include #include Index: lib/gettimeofday.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/gettimeofday.c,v retrieving revision 1.6 diff -u -r1.6 gettimeofday.c --- lib/gettimeofday.c 14 May 2005 06:03:58 -0000 1.6 +++ lib/gettimeofday.c 13 Sep 2005 15:13:10 -0000 @@ -20,7 +20,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif /* Disable the definitions of these functions (from config.h) so we can use the library versions here. */ Index: lib/lchown.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/lchown.c,v retrieving revision 1.15 diff -u -r1.15 lchown.c --- lib/lchown.c 14 May 2005 06:03:58 -0000 1.15 +++ lib/lchown.c 13 Sep 2005 15:13:10 -0000 @@ -17,7 +17,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include #include Index: lib/lstat.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/lstat.c,v retrieving revision 1.8 diff -u -r1.8 lstat.c --- lib/lstat.c 24 Jun 2005 14:53:04 -0000 1.8 +++ lib/lstat.c 13 Sep 2005 15:13:10 -0000 @@ -19,7 +19,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif /* The specification of these functions is in sys_stat.h. But we cannot include this include file here, because on some systems, a Index: lib/mkdir.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/mkdir.c,v retrieving revision 1.18 diff -u -r1.18 mkdir.c --- lib/mkdir.c 14 May 2005 06:03:58 -0000 1.18 +++ lib/mkdir.c 13 Sep 2005 15:13:10 -0000 @@ -19,7 +19,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif /* Disable the definition of mkdir to rpl_mkdir (from config.h) in this file. Otherwise, we'd get conflicting prototypes for rpl_mkdir on Index: lib/mkstemp.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/mkstemp.c,v retrieving revision 1.5 diff -u -r1.5 mkstemp.c --- lib/mkstemp.c 2 Jun 2005 20:41:06 -0000 1.5 +++ lib/mkstemp.c 13 Sep 2005 15:13:10 -0000 @@ -15,7 +15,9 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif /* Disable the definition of mkstemp to rpl_mkstemp (from config.h) in this file. Otherwise, we'd get conflicting prototypes for rpl_mkstemp on Index: lib/nanosleep.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/nanosleep.c,v retrieving revision 1.15 diff -u -r1.15 nanosleep.c --- lib/nanosleep.c 14 May 2005 06:03:58 -0000 1.15 +++ lib/nanosleep.c 13 Sep 2005 15:13:10 -0000 @@ -17,7 +17,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif /* Undefine nanosleep here so any prototype is not redefined to be a prototype for rpl_nanosleep. (they'd conflict e.g., on alpha-dec-osf3.2) */ Index: lib/openat.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/openat.c,v retrieving revision 1.4 diff -u -r1.4 openat.c --- lib/openat.c 2 Jun 2005 20:41:06 -0000 1.4 +++ lib/openat.c 13 Sep 2005 15:13:10 -0000 @@ -17,7 +17,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include "openat.h" Index: lib/raise.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/raise.c,v retrieving revision 1.2 diff -u -r1.2 raise.c --- lib/raise.c 14 May 2005 06:03:58 -0000 1.2 +++ lib/raise.c 13 Sep 2005 15:13:10 -0000 @@ -17,7 +17,9 @@ /* written by Jim Meyering */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include #include Index: lib/readtokens0.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/readtokens0.c,v retrieving revision 1.2 diff -u -r1.2 readtokens0.c --- lib/readtokens0.c 14 May 2005 06:03:58 -0000 1.2 +++ lib/readtokens0.c 13 Sep 2005 15:13:10 -0000 @@ -17,7 +17,9 @@ Written by Jim Meyering. */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include #include "readtokens0.h" Index: lib/readutmp.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/readutmp.c,v retrieving revision 1.23 diff -u -r1.23 readutmp.c --- lib/readutmp.c 22 Jun 2005 18:27:44 -0000 1.23 +++ lib/readutmp.c 13 Sep 2005 15:13:10 -0000 @@ -17,7 +17,9 @@ /* Written by jla; revised by djm */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include "readutmp.h" Index: lib/unlinkdir.c =================================================================== RCS file: /cvsroot/gnulib/gnulib/lib/unlinkdir.c,v retrieving revision 1.1 diff -u -r1.1 unlinkdir.c --- lib/unlinkdir.c 15 May 2005 06:11:32 -0000 1.1 +++ lib/unlinkdir.c 13 Sep 2005 15:13:10 -0000 @@ -18,7 +18,9 @@ /* Written by Paul Eggert and Jim Meyering. */ -#include +#ifdef HAVE_CONFIG_H +# include +#endif #include "unlinkdir.h"