]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR preprocessor/11839 (GCC cannot find t/t.h if t is a file and t/t.h is in subdir...
authorNeil Booth <neil@daikokuya.co.uk>
Sat, 9 Aug 2003 08:53:02 +0000 (08:53 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 9 Aug 2003 08:53:02 +0000 (08:53 +0000)
PR preprocessor/11839
* cppfiles.c (open_file): Handle ENOTDIR.

From-SVN: r70275

gcc/ChangeLog
gcc/cppfiles.c

index 6a73d11c131cb8a5584b1809dbb1de43257f3928..ce0272437676430c01830aef8fad60a82dfc7821 100644 (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
index 8dcc269d1062b730c4be7da745fdf15b5ee962a8..4c3608b127c764e9b1efc7bb2f20762cd5634fd0 100644 (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;