On 11/16/24 3:15 PM, Tom Tromey wrote:
Hi. I tried importing readline 8.2 into the gdb repository.It did not build on mingw. The appended patch fixes all the problems. * A call to isatty is missing a close paren
Thanks, this was fixed a while back.
* rlprivate.h declares _rl_timeout_select based on whether posixselect.h was included, but this causes a build failure. The patch changes it to use the same define that other spots check.
The current devel readline does this differently, with a specific check for mingw. The change dates from October, 2022.
* mingw <unistd.h> does not declare alarm() by default. You have to define _POSIX and __USE_MINGW_ALARM. TBH I am not sure if this is the ideal approach. Also I can't say whether or not the result works.
I have reports that alarm() doesn't work on mingw at all, so the curent verison doesn't try to support timeouts on mingw. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature