aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1996-01-16 10:56:29 -0800
committerJim Wilson <wilson@gcc.gnu.org>1996-01-16 10:56:29 -0800
commitf14c3e3d872e4a527640c3255e16187b48d3e32b (patch)
treee1194d9d9f32862a193539aaa04d7ca4b4a33e45 /gcc
parent7e245bad44b8b93a64a91de7e867090421684b78 (diff)
downloadgcc-f14c3e3d872e4a527640c3255e16187b48d3e32b.zip
gcc-f14c3e3d872e4a527640c3255e16187b48d3e32b.tar.gz
gcc-f14c3e3d872e4a527640c3255e16187b48d3e32b.tar.bz2
(new_include_prefix): Ignore ENOTDIR error from stat.
From-SVN: r11032
Diffstat (limited to 'gcc')
-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;