From b4aa7d78785ed2289ab8657a4022c2751e746494 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 9 Aug 2003 08:53:02 +0000 Subject: PR preprocessor/11839 * cppfiles.c (open_file): Handle ENOTDIR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70275 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppfiles.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cppfiles.c') diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 8dcc269d106..4c3608b127c 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; -- cgit v1.2.3