If the application is using unlocked-io, do that in the !ENABLE_NLS case too. This is more for consistency than for performance in the typical case. * lib/yesno.c [USE_UNLOCKED_IO]: Include unlocked-io.h. --- ChangeLog | 8 ++++++++ lib/yesno.c | 4 ++++ 2 files changed, 12 insertions(+)
diff --git a/ChangeLog b/ChangeLog index 0302110aef..572f164866 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2026-04-01 Paul Eggert <[email protected]> + + yesno: treat unlocking similarly if !ENABLE_NLS + If the application is using unlocked-io, do that in the + !ENABLE_NLS case too. This is more for consistency than for + performance in the typical case. + * lib/yesno.c [USE_UNLOCKED_IO]: Include unlocked-io.h. + 2026-03-31 Paul Eggert <[email protected]> sigprocmask: allow --avoid=lock diff --git a/lib/yesno.c b/lib/yesno.c index 072ffde5de..c5ba383eff 100644 --- a/lib/yesno.c +++ b/lib/yesno.c @@ -22,6 +22,10 @@ #include <stdlib.h> #include <stdio.h> +#if USE_UNLOCKED_IO +# include "unlocked-io.h" +#endif + /* Return true if we read an affirmative line from standard input. Since this function uses stdin, it is suggested that the caller not -- 2.53.0
