[21.4] [PATCH] Fix --without-tty builds on BSD/MacOS X.