--- a/mercurial/util.h Fri Jul 02 16:21:36 2010 -0300 +++ b/mercurial/util.h Fri Jul 02 16:21:38 2010 -0300 @@ -12,6 +12,7 @@ #define IS_PY3K #define PyInt_FromLong PyLong_FromLong +#define PyInt_AsLong PyLong_AsLong #endif /* PY_MAJOR_VERSION */