diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-08-09 08:53:02 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-08-09 08:53:02 +0000 |
commit | a54c550f3ff4cfd3b7b7d0978d8acee86be0ed2a (patch) | |
tree | 8569c431f8f63fcdca67cae41cb477b421e666ef /gcc/cppfiles.c | |
parent | 142ee13662082efd1337f7715ec25d7059baecb6 (diff) | |
download | gcc-a54c550f3ff4cfd3b7b7d0978d8acee86be0ed2a.zip gcc-a54c550f3ff4cfd3b7b7d0978d8acee86be0ed2a.tar.gz gcc-a54c550f3ff4cfd3b7b7d0978d8acee86be0ed2a.tar.bz2 |
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
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 8dcc269..4c3608b 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -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; |