]> gcc.gnu.org Git - gcc.git/commit
ada: Simplify handling of VxWorks-specific error codes for ENOENT
authorJerome Guitton <guitton@adacore.com>
Fri, 10 May 2024 13:16:17 +0000 (13:16 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 14 Jun 2024 07:34:20 +0000 (09:34 +0200)
commit7232be268a0a275d43225fef141cf99d2f6bbed9
tree13acfd27f4953304fda9e04e4eca30c370fe23ed
parent50c41dd34202b29983a862b5d326bab668402c17
ada: Simplify handling of VxWorks-specific error codes for ENOENT

These error codes were defined on older versions of VxWorks (5, 6, 7
SR0540) and now they are either not defined or they fallback to
ENOENT. To handle these cases without using complex tests against
vxworks versions, leverage on __has_include and provide a fallback to
ENOENT if these error codes are not defined.

gcc/ada/

* sysdep.c (S_dosFsLib_FILE_NOT_FOUND, S_nfsLib_NFSERR_NOENT):
New macros, falback to ENOENT when not already defined.
(__gnat_is_file_not_found_error): Use these new macros to remove
tests against VxWorks flavors.
gcc/ada/sysdep.c
This page took 0.055755 seconds and 5 git commands to generate.