re PR preprocessor/11839 (GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp)

PR preprocessor/11839
	* cppfiles.c (open_file): Handle ENOTDIR.

From-SVN: r70275
This commit is contained in:
Neil Booth 2003-08-09 08:53:02 +00:00 committed by Neil Booth
parent 142ee13662
commit a54c550f3f
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-08-09 Neil Booth <neil@daikokuya.co.uk>
PR preprocessor/11839
* cppfiles.c (open_file): Handle ENOTDIR.
2003-08-09 Richard Sandiford <rsandifo@redhat.com>
PR target/11699

View File

@ -230,6 +230,8 @@ open_file (_cpp_file *file)
close (file->fd);
file->fd = -1;
}
else if (errno == ENOTDIR)
errno = ENOENT;
file->err_no = errno;