summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 23:26:10 +0000
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 23:26:10 +0000
commit7fc1caed37e14732a95513b5bc081dd5dcab65da (patch)
tree6044a333d05202900cb8bde17772ecf4ed78e915 /Python
parent4fdb8424ee2065f9fa576d7ffb3dab4441cb60f6 (diff)
downloadcpython-7fc1caed37e14732a95513b5bc081dd5dcab65da.tar.gz
#4532: fixes to make 3.x compile on QNX 6.3.2 (reported by Matt Kraai)
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 3764740e81..b99a541d54 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -180,7 +180,7 @@ Py_InitializeEx(int install_sigs)
return;
initialized = 1;
-#ifdef HAVE_SETLOCALE
+#if defined(HAVE_LANGINFO_H) && defined(HAVE_SETLOCALE)
/* Set up the LC_CTYPE locale, so we can obtain
the locale's charset without having to switch
locales. */