Re: [PATCH] config: Provide file descriptors only if necessary

2020-08-31 Thread Sebastian Huber
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

[PATCH] config: Provide file descriptors only if necessary

2020-08-21 Thread Sebastian Huber
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 arra