--- a/mercurial/util.h Sun Apr 08 12:38:26 2012 -0500
+++ b/mercurial/util.h Sun Apr 08 22:17:51 2012 -0500
@@ -101,5 +101,9 @@
#endif /* PY_VERSION_HEX */
+#if (PY_VERSION_HEX < 0x02050000)
+typedef int Py_ssize_t;
+#endif
+
#endif /* _HG_UTIL_H_ */