Only declare saved_errno when it's going to be used (on Linux).