From 0d84cc66ee79ccd92f4c30548ceaa632dd7d3144 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 10 Sep 2003 08:26:42 +0000 Subject: [PATCH] Include , unconditionally. Don't declare getenv or malloc. --- lib/backupfile.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) 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 -- 2.47.2