summaryrefslogtreecommitdiff
path: root/mod_wsgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mod_wsgi.c')
-rw-r--r--mod_wsgi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod_wsgi.c b/mod_wsgi.c
index f91a5e4..fbb07ef 100644
--- a/mod_wsgi.c
+++ b/mod_wsgi.c
@@ -133,6 +133,12 @@ typedef regmatch_t ap_regmatch_t;
#error Sorry, mod_wsgi requires at least Python 2.3.0.
#endif
+#if !defined(MOD_WSGI_ENABLE_PY3K)
+#if PY_VERSION_HEX >= 0x03000000
+#error Sorry, there is no WSGI specification for Python 3.X as yet.
+#endif
+#endif
+
#if !defined(WITH_THREAD)
#error Sorry, mod_wsgi requires that Python supporting thread.
#endif