summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index e3d1e7f..58beb5c 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -12,11 +12,14 @@ This software comes with no warranty. Use at your own risk.
#include "Python.h"
#include <stdio.h>
-#include <errno.h>
#include <locale.h>
#include <string.h>
#include <ctype.h>
+#ifndef DONT_HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
#endif