Browse Source

Added missing includes.

Sergey Poznyakoff 21 years ago
parent
commit
89d2ad35e6
2 changed files with 5 additions and 1 deletions
  1. 3 0
      lib/waitpid.c
  2. 2 1
      src/extract.c

+ 3 - 0
lib/waitpid.c

@@ -20,6 +20,9 @@
 # include <config.h>
 #endif
 
+#include <sys/types.h>
+#include <sys/stat.h>
+
 #include <errno.h>
 #ifndef errno
 extern int errno;

+ 2 - 1
src/extract.c

@@ -21,6 +21,7 @@
 
 #include "system.h"
 #include <quotearg.h>
+#include <errno.h>
 
 #if HAVE_UTIME_H
 # include <utime.h>
@@ -407,7 +408,7 @@ make_directories (char *file_name)
       else if ((errno == ENOSYS /* Automounted dirs on Solaris return
 				   this. Reported by Warren Hyde
 				   <[email protected]> */
-	       || ERRNO_IS_EACCESS)  /* Turbo C mkdir gives a funny errno.  */
+	       || ERRNO_IS_EACCES)  /* Turbo C mkdir gives a funny errno.  */
 	       && access (file_name, W_OK) == 0)
 	continue;