From c4117156a444f4b53180874389b71b1900bd1660 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 May 1993 21:32:34 +0000 Subject: [PATCH] GNU file utilities --- lib/Makefile.in | 2 +- lib/makepath.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 ) -- 2.11.0