changeset 62:6a60ef1ed3c7

GNU file utilities
author Jim Meyering <jim@meyering.net>
date Sun, 02 May 1993 21:32:34 +0000
parents 3209a15d374c
children 9e544a5358a7
files lib/Makefile.in lib/makepath.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -43,7 +43,7 @@
 all: libfu.a
 
 .c.o:
-	$(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir) $<
+	$(CC) -c $(DEFS) -I$(srcdir) $(CPPFLAGS) $(CFLAGS) $<
 
 install: all
 
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -43,8 +43,11 @@
 #endif
 
 #ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
+
+#if defined (STDC_HEADERS) || defined (HAVE_ERRNO_H)
 #include <errno.h>
-#include <stdlib.h>
 #else
 extern int errno;
 #endif
@@ -147,7 +150,7 @@
 
 		  if (owner != (uid_t) -1 && group != (gid_t) -1
 		      && chown (dirpath, owner, group)
-#ifdef AFS
+#if defined(AFS) && defined (EPERM)
 		      && errno != EPERM
 #endif
 		      )