X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkdir.c;h=5a0c4b03347d40ce56553148cf0dec88e9ac150c;hb=8fd1da3adc9aa6ac151a827834cbfab9ec0b226a;hp=7c756a283e9406b567527e03648bf18c7658b634;hpb=e27f0f10ff949ff82f1afcefa5dea1233bb809c2;p=gnulib.git diff --git a/lib/mkdir.c b/lib/mkdir.c index 7c756a283..5a0c4b033 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, 2006 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 @@ -14,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* written by Jim Meyering */ @@ -28,26 +29,12 @@ #include #include #include -#if HAVE_STDLIB_H -# include -#endif - -#if HAVE_STRING_H -# include -#else -# include -#endif +#include +#include #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