summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/errors.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 7424b0c..7c66f65 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));