]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <stdlib.h>, <string.h> unconditionally.
authorJim Meyering <jim@meyering.net>
Thu, 11 Sep 2003 09:08:29 +0000 (09:08 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 11 Sep 2003 09:08:29 +0000 (09:08 +0000)
(free): Remove decl.

lib/stat.c

index 284da0cbc8a1cfe60dc3df5d09970e9757c9db12..f8fc82ebced73a59a7b1420d0c83eb62d529dfd9 100644 (file)
 extern int errno;
 #endif
 #if defined LSTAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK
+# include <stdlib.h>
 # include <string.h>
 
-# if HAVE_STDLIB_H
-#  include <stdlib.h>
-# endif
-
 # ifdef STAT_MACROS_BROKEN
 #  undef S_ISLNK
 # endif
@@ -49,13 +46,6 @@ extern int errno;
 #  endif
 # endif
 
-# ifndef HAVE_DECL_FREE
-"this configure-time declaration test was not run"
-# endif
-# if !HAVE_DECL_FREE
-void free ();
-# endif
-
 # include "xalloc.h"
 
 /* lstat works differently on Linux and Solaris systems.  POSIX (see