Added missing includes.

This commit is contained in:
Sergey Poznyakoff
2003-10-08 11:17:36 +00:00
parent bf6b473b3b
commit 89d2ad35e6
2 changed files with 5 additions and 1 deletions

View File

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

View File

@@ -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
<Warren.Hyde@motorola.com> */
|| 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;