aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 1c9abfc..1163660 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -9795,7 +9795,7 @@ new_include_prefix (prev_file_name, prefix, name)
/* Ignore a nonexistent directory. */
if (stat (len ? dir->fname : ".", &dir->st) != 0) {
- if (errno != ENOENT)
+ if (errno != ENOENT && errno != ENOTDIR)
error_from_errno (dir->fname);
free (dir);
return 0;