diff --git a/Python/errors.c b/Python/errors.c index 7424b0cae1e..7c66f65af27 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -31,10 +31,13 @@ err_setval() has to be changed. */ -#include "errno.h" - #include "allobjects.h" +#include +#ifndef errno +extern int errno; +#endif + #include "errcode.h" extern char *strerror PROTO((int));