summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-12-20 23:05:40 (GMT)
committerGuido van Rossum <guido@python.org>1990-12-20 23:05:40 (GMT)
commitf22120ab74281d443dca2d25c9e6add5721b9b8a (patch)
tree8b77e315b5e274fbf615280b17520fbacf2bde69 /Python/errors.c
parentaec78552273b8c4e44688b99e4436c23f1963e79 (diff)
downloadcpython-f22120ab74281d443dca2d25c9e6add5721b9b8a.zip
cpython-f22120ab74281d443dca2d25c9e6add5721b9b8a.tar.gz
cpython-f22120ab74281d443dca2d25c9e6add5721b9b8a.tar.bz2
Changed include of <errno.h>
Diffstat (limited to 'Python/errors.c')
-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));