(new_include_prefix): Don't try to stat dir prefixes in VMS.
From-SVN: r10890
}
break;
}
+#ifdef VMS
+ /* Our VMS hacks can produce invalid filespecs, so don't worry
+ about errors other than EACCES. */
+ if (errno == EACCES)
+ break;
+#else
if (errno != ENOENT)
break;
+#endif
}
}
return 0;
}
+#ifndef VMS
+ /* VMS can't stat dir prefixes, so skip these optimizations in VMS. */
+
/* Ignore a nonexistent directory. */
if (stat (len ? dir->fname : ".", &dir->st) != 0) {
if (errno != ENOENT)
free (dir);
return 0;
}
+#endif /* ! VMS */
dir->next = 0;
dir->c_system_include_path = 0;