[bug #4302] errno is not always an extern int