diff options
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c index 7424b0cae1..7c66f65af2 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 <errno.h> +#ifndef errno +extern int errno; +#endif + #include "errcode.h" extern char *strerror PROTO((int)); |