]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <string.h>, <stdlib.h> unconditionally.
authorJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:26:42 +0000 (08:26 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:26:42 +0000 (08:26 +0000)
Don't declare getenv or malloc.

lib/backupfile.c

index 34bde3cab56614c45bce32b5f958ab0b13f76691..7ea76b49e7853516b2938b0fa0170eb4f590f7e1 100644 (file)
 
 #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>
 # 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