X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmakepath.c;h=e61579021c204d7a613dae11b92091610003131c;hb=6b89992dbb9ec71f4505b47447bde264e3035056;hp=4c19630e661a782ab1f520338e05a4ffee3aefed;hpb=d7b5315b0e0d2ebba292ccf0de92fd0e7a2123e8;p=gnulib.git diff --git a/lib/makepath.c b/lib/makepath.c index 4c19630e6..e61579021 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -43,9 +43,14 @@ char *alloca (); #endif #ifdef STDC_HEADERS -#include #include -#else +#endif + +#ifdef HAVE_ERRNO_H +#include +#endif + +#ifndef STDC_HEADERS extern int errno; #endif @@ -147,7 +152,7 @@ make_path (argpath, mode, parent_mode, owner, group, verbose_fmt_string) if (owner != (uid_t) -1 && group != (gid_t) -1 && chown (dirpath, owner, group) -#ifdef AFS +#if defined(AFS) && defined (EPERM) && errno != EPERM #endif )