summaryrefslogtreecommitdiff
path: root/lib/rename.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-11 09:06:31 +0000
committerJim Meyering <jim@meyering.net>2003-09-11 09:06:31 +0000
commit03dd48e562f58d5a68071291db9459c391ec1d49 (patch)
treebd15a6ea5813c7b771a601fb2f34bb7ec55eb446 /lib/rename.c
parente1ba7e7e94846d268dcc1ece84ce54844b6908c2 (diff)
downloadcoreutils-03dd48e562f58d5a68071291db9459c391ec1d49.tar.xz
Include <stdlib.h>, <string.h> unconditionally.
(free): Remove decl.
Diffstat (limited to 'lib/rename.c')
-rw-r--r--lib/rename.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/rename.c b/lib/rename.c
index 4a4c165b2..6ff070532 100644
--- a/lib/rename.c
+++ b/lib/rename.c
@@ -25,26 +25,12 @@
#undef rename
#include <stdio.h>
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
-#if HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
#include "dirname.h"
#include "xalloc.h"
-#ifndef HAVE_DECL_FREE
-"this configure-time declaration test was not run"
-#endif
-#if !HAVE_DECL_FREE
-void free ();
-#endif
-
/* Rename the file SRC_PATH to DST_PATH, removing any trailing
slashes from SRC_PATH. Needed for SunOS 4.1.1_U1. */