From: Jim Meyering Date: Sun, 2 May 1993 21:32:34 +0000 (+0000) Subject: GNU file utilities X-Git-Tag: FILEUTILS-3_5_2 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c4117156a444f4b53180874389b71b1900bd1660;p=gnulib.git GNU file utilities --- diff --git a/lib/Makefile.in b/lib/Makefile.in index 83ea2751d..8a4dc8480 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -43,7 +43,7 @@ fnmatch.h fsusage.h mountlist.h pathmax.h system.h $(SOURCES) all: libfu.a .c.o: - $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $< + $(CC) -c $(DEFS) -I$(srcdir) $(CPPFLAGS) $(CFLAGS) $< install: all diff --git a/lib/makepath.c b/lib/makepath.c index 4c19630e6..123d6abea 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -43,8 +43,11 @@ char *alloca (); #endif #ifdef STDC_HEADERS -#include #include +#endif + +#if defined (STDC_HEADERS) || defined (HAVE_ERRNO_H) +#include #else extern int errno; #endif @@ -147,7 +150,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 )