[PATCH] config: Provide file descriptors only if necessary

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 31 15:18:38 UTC 2020


On 21/08/2020 10:44, Sebastian Huber wrote:

> Only provide the file descriptor array if
> CONFIGURE_MAXIMUM_FILE_DESCRIPTORS > 0.  If someone configured
> CONFIGURE_MAXIMUM_FILE_DESCRIPTORS == 0 and the appplication uses
> something which requires a file descriptor, then a linker error will
> show up.  An alternative would be to add a zero-length array
> rtems_libio_iops[ 0 ] to librtemscpu.a which would be used in this
> case.
>
> Conditionally include some header files.
This change breaks the minimum test program on some BSPs. I will add the 
zero-length rtems_libio_iops to librtemscpu.a to fix this.


More information about the devel mailing list