Commit a54c550f by Neil Booth Committed by Neil Booth

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
parent 142ee136
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> 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
PR target/11699 PR target/11699
......
...@@ -230,6 +230,8 @@ open_file (_cpp_file *file) ...@@ -230,6 +230,8 @@ open_file (_cpp_file *file)
close (file->fd); close (file->fd);
file->fd = -1; file->fd = -1;
} }
else if (errno == ENOTDIR)
errno = ENOENT;
file->err_no = errno; file->err_no = errno;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment