[farsight2/master] Make it compile with python 2.4

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:26:52 PST 2008


---
 configure.ac               |    2 +-
 python/pyfarsight.override |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2388c48..44c121c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -206,7 +206,7 @@ AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
 
 dnl check for documentation tools
 GTK_DOC_CHECK([1.8])
-AS_PATH_PYTHON([2.1])
+AS_PATH_PYTHON([2.4])
 AG_GST_PLUGIN_DOCS([1.8],[2.1])
 
 dnl Make automake happy with per-target flags
diff --git a/python/pyfarsight.override b/python/pyfarsight.override
index a135518..9dde115 100644
--- a/python/pyfarsight.override
+++ b/python/pyfarsight.override
@@ -10,6 +10,11 @@ headers
 #include <gst/farsight/fs-transmitter.h>
 #include <gst/farsight/fs-element-added-notifier.h>
 
+/* This is new in python 2.5 */
+#if PYTHON_API_VERSION < 1013
+typedef int Py_ssize_t;
+#endif
+
 static PyObject *
 _fs_boxed_list_from_value (const GValue *value, GType listtype, GType type)
 {
-- 
1.5.6.5




More information about the farsight-commits mailing list