quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thom May <thom...@apache.org>
Subject [PATCH] fix compile with Python2.3
Date Sat, 02 Aug 2003 09:30:09 GMT
Hi folks,
I'm not subscribed so my apologies if this is a duplicate report, but
Python2.3 no longer #defines LONG_LONG, it defines PY_LONG_LONG.
Since requestobject.c uses LONG_LONG, this causes the build to implode.
The following patch fixes the problem.
Cheers,
-Thom

Index: src/include/mod_python.h
===================================================================
RCS file: /home/cvs/httpd-python/src/include/mod_python.h,v
retrieving revision 1.33
diff -u -r1.33 mod_python.h
--- src/include/mod_python.h    1 Aug 2003 01:53:13 -0000       1.33
+++ src/include/mod_python.h    2 Aug 2003 09:25:35 -0000
@@ -138,6 +138,11 @@
 #define SILENT 0
 #define NOTSILENT 1
 
+/* python 2.3 no longer defines LONG_LONG, it defines PY_LONG_LONG */
+#ifndef LONG_LONG
+#define LONG_LONG PY_LONG_LONG
+#endif
+
 /* structure to hold interpreter data */
 typedef struct {
     PyInterpreterState *istate;

Mime
View raw message