mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
Change libreadline version from which it's OK to run from a pipeline
This commit is contained in:
@@ -1432,7 +1432,7 @@ int terminal_mode(PROGRAMMER *pgm, struct avrpart *p) {
|
||||
// EditLine (NetBSD, MacOS) has issues with that, so only use it when
|
||||
// running interactively.
|
||||
// EditLine uses version 4.2 (0x0402).
|
||||
if (isatty(fileno(stdin)) || (rl_readline_version >= 0x0500))
|
||||
if (isatty(fileno(stdin)) || rl_readline_version > 0x0500)
|
||||
return terminal_mode_interactive(pgm, p);
|
||||
#endif
|
||||
return terminal_mode_noninteractive(pgm, p);
|
||||
|
Reference in New Issue
Block a user