another opensuse-related fix, build mimedict only if needed

This commit is contained in:
roberto@opensuse12
2012-04-25 08:02:24 +02:00
parent 2368a5a050
commit 0d28d210d4
2 changed files with 21 additions and 11 deletions
+6 -1
View File
@@ -150,7 +150,12 @@ int uwsgi_python_init() {
#ifndef UWSGI_PYPY
char *pyversion = strchr(Py_GetVersion(), '\n');
uwsgi_log_initial("Python version: %.*s %s\n", pyversion-Py_GetVersion(), Py_GetVersion(), Py_GetCompiler()+1);
if (!pyversion) {
uwsgi_log_initial("Python version: %s %s\n", Py_GetVersion(), Py_GetCompiler()+1);
}
else {
uwsgi_log_initial("Python version: %.*s %s\n", pyversion-Py_GetVersion(), Py_GetVersion(), Py_GetCompiler()+1);
}
#else
uwsgi_log_initial("PyPy version: %s\n", PYPY_VERSION);
#endif