summaryrefslogtreecommitdiff
path: root/lib/backupfile.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2003-09-08 22:52:05 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2003-09-08 22:52:05 +0000
commitb04cd621280110172af09716045c4a91046aed3d (patch)
treecdd4f079d5daaf5aa7d500ff4f4530aa6bb02418 /lib/backupfile.c
parent0cc0b7f8af10bd3b826f79e0cf596b24c742299c (diff)
downloadgnulib-b04cd621280110172af09716045c4a91046aed3d.tar.gz
Assume C89; don't check for stdlib.h, string.h, genenv, 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 34bde3cab5..7ea76b49e7 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