From a54c550f3ff4cfd3b7b7d0978d8acee86be0ed2a Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 9 Aug 2003 08:53:02 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/cppfiles.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a73d11c131c..ce0272437676 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-08-09 Neil Booth + + PR preprocessor/11839 + * cppfiles.c (open_file): Handle ENOTDIR. + 2003-08-09 Richard Sandiford PR target/11699 diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 8dcc269d1062..4c3608b127c7 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; -- 2.47.2