diff options
author | Corentin Gay <gay@adacore.com> | 2021-09-09 11:57:06 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-05 08:20:02 +0000 |
commit | 50524b0aa6ae0ffa1399851a19d6d97c867206a7 (patch) | |
tree | 9398f55e37bde43d092c9b1958052241be78e84b /gcc/ada/sysdep.c | |
parent | bdabd8b6ecb3115dd359d39221b01cbc4b523333 (diff) | |
download | gcc-50524b0aa6ae0ffa1399851a19d6d97c867206a7.zip gcc-50524b0aa6ae0ffa1399851a19d6d97c867206a7.tar.gz gcc-50524b0aa6ae0ffa1399851a19d6d97c867206a7.tar.bz2 |
[Ada] Add case to consider ENODEV a "file not found error"
gcc/ada/
* sysdep.c (__gnat_is_file_not_found_error): Add else if case.
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r-- | gcc/ada/sysdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index ee951e3..2c50b36 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -907,6 +907,10 @@ __gnat_is_file_not_found_error (int errno_val) if (errno_val == ENOENT) return 1; #ifdef __vxworks + /* Starting with VxWorks 21.03, the fopen() function can set errno to + * ENODEV when the prefix of the path does not match any known device. */ + else if (errno_val == ENODEV) + return 1; /* In the case of VxWorks, we also have to take into account various * filesystem-specific variants of this error. */ |