X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Frmdir.c;h=ddb5c30b2c866036ac0dad3b341d4ccabb5831a5;hb=dd469821917cebe0abde6601b2ba7cd887bc498f;hp=5315711c327c8d1c6ccd4197d3f91dd2efef0f9f;hpb=0c363304f645105a776fac77223e218e7b8f41e0;p=gnulib.git diff --git a/lib/rmdir.c b/lib/rmdir.c index 5315711c3..ddb5c30b2 100644 --- a/lib/rmdir.c +++ b/lib/rmdir.c @@ -1,6 +1,6 @@ /* BSD compatible remove directory function for System V - Copyright (C) 1988, 1990, 1999, 2003 Free Software Foundation, Inc. + Copyright (C) 1988, 1990, 1999, 2003, 2004 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 @@ -22,19 +22,9 @@ #include #include - #include -#ifndef errno -extern int errno; -#endif -#if STAT_MACROS_BROKEN -# undef S_ISDIR -#endif - -#if !defined(S_ISDIR) && defined(S_IFDIR) -# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) -#endif +#include "stat-macros.h" /* rmdir adapted from GNU tar. */