summaryrefslogtreecommitdiff
path: root/lib/backupfile.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 08:26:42 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 08:26:42 +0000
commit0d84cc66ee79ccd92f4c30548ceaa632dd7d3144 (patch)
tree9931c2fb0d45601643dba3098fbe60a240da080a /lib/backupfile.c
parentcf61cc9303be140fe7b70e3e5243c29dd96658c9 (diff)
downloadcoreutils-0d84cc66ee79ccd92f4c30548ceaa632dd7d3144.tar.xz
Include <string.h>, <stdlib.h> unconditionally.
Don't declare getenv or malloc.
Diffstat (limited to 'lib/backupfile.c')
-rw-r--r--lib/backupfile.c24
1 files changed, 2 insertions, 22 deletions
diff --git a/lib/backupfile.c b/lib/backupfile.c
index 34bde3cab..7ea76b49e 100644
--- a/lib/backupfile.c
+++ b/lib/backupfile.c
@@ -27,11 +27,7 @@
#include <stddef.h>
#include <stdio.h>
-#if HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <string.h>
#if HAVE_DIRENT_H
# include <dirent.h>
@@ -57,23 +53,7 @@
# define CLOSEDIR(d) closedir (d)
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#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 <stdlib.h>
#if HAVE_DIRENT_H || HAVE_NDIR_H || HAVE_SYS_DIR_H || HAVE_SYS_NDIR_H
# define HAVE_DIR 1