summaryrefslogtreecommitdiff
path: root/lib/mkdir.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 09:03:45 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 09:03:45 +0000
commit71827bcf04f42711d9584a79f0dfd662c0f71922 (patch)
tree2299fa7038c5e1f9208d6b728a9805f8df5fe339 /lib/mkdir.c
parentd10831f97b4ecadcdb415536259877c4c65e8325 (diff)
downloadcoreutils-71827bcf04f42711d9584a79f0dfd662c0f71922.tar.xz
Include <stdlib.h>, <string.h> unconditionally.
(free): Remove decl.
Diffstat (limited to 'lib/mkdir.c')
-rw-r--r--lib/mkdir.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/lib/mkdir.c b/lib/mkdir.c
index 7c756a283..c3ecc721e 100644
--- a/lib/mkdir.c
+++ b/lib/mkdir.c
@@ -1,6 +1,7 @@
/* On some systems, mkdir ("foo/", 0700) fails because of the trailing
slash. On those systems, this wrapper removes the trailing slash.
- Copyright (C) 2001 Free Software Foundation, Inc.
+
+ Copyright (C) 2001, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -28,26 +29,12 @@
#include <sys/types.h>
#include <sys/stat.h>
#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
-
/* This function is required at least for NetBSD 1.5.2. */
int