openwrt/tools/gnulib/patches
Michael Pratt eb726c90be tools/gnulib: make tdestroy() fully portable
The tdestroy() function, which is a GNU extension to the standard C
library, is defined in gnulib in tsearch.c but is missing it's
corresponding declaration in search.in.h by being completely missing...

This patch is large but upstreamable, including all of the macros and
conditionals and configure checks that upstream GNU would expect for
portable support, like using the @@ placeholder/substitution method to
determine whether or not to have declarations based on whether or not
tdestroy() is already declared within the standard headers of the default
include paths.

There were also some typedefs and aliases missing, along with the warnings
and preprocessor exceptions that need to be added for consistency with the
usage of the rest of the functions in the files.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2024-04-25 21:33:51 +02:00
..
000-bootstrap.patch tools/gnulib: update to branch stable-202401 2024-04-25 21:33:51 +02:00
150-portable-tdestroy.patch tools/gnulib: make tdestroy() fully portable 2024-04-25 21:33:51 +02:00
160-flag-reallocarray.patch tools/gnulib: add macros to skip reallocarray() functions 2024-04-25 21:33:51 +02:00