From: Jim Meyering Date: Wed, 10 Sep 2003 08:26:42 +0000 (+0000) Subject: Include , unconditionally. X-Git-Tag: v5.1.0~789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d84cc66ee79ccd92f4c30548ceaa632dd7d3144;p=thirdparty%2Fcoreutils.git Include , unconditionally. Don't declare getenv or malloc. --- diff --git a/lib/backupfile.c b/lib/backupfile.c index 34bde3cab5..7ea76b49e7 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -27,11 +27,7 @@ #include #include -#if HAVE_STRING_H -# include -#else -# include -#endif +#include #if HAVE_DIRENT_H # include @@ -57,23 +53,7 @@ # define CLOSEDIR(d) closedir (d) #endif -#if HAVE_STDLIB_H -# include -#endif - -#ifndef HAVE_DECL_GETENV -"this configure-time declaration test was not run" -#endif -#if !HAVE_DECL_GETENV -char *getenv (); -#endif - -#ifndef HAVE_DECL_MALLOC -"this configure-time declaration test was not run" -#endif -#if !HAVE_DECL_MALLOC -char *malloc (); -#endif +#include #if HAVE_DIRENT_H || HAVE_NDIR_H || HAVE_SYS_DIR_H || HAVE_SYS_NDIR_H # define HAVE_DIR 1