summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/errors.c b/Python/errors.c
index f072c21496..519f2d459e 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -15,12 +15,13 @@ extern char *strerror(int);
#endif
#endif
+#include <ctype.h>
#ifdef MS_WINDOWS
-#include <windows.h>
-#include <winbase.h>
+# include <windows.h>
+# include <winbase.h>
+# include <stdlib.h> // _sys_nerr
#endif
-#include <ctype.h>
#ifdef __cplusplus
extern "C" {