avoid setting errno when checking for tty
[musl] / src / setjmp / longjmp.c