Fix build on platforms that don't have intptr_t. Patch by Joseph Armbruster.
diff --git a/Objects/intobject.c b/Objects/intobject.c
index 65c1c23..9158aa4 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -1038,7 +1038,7 @@
 
 static PyObject *
 int_getN(PyIntObject *v, void *context) {
-	return PyInt_FromLong((intptr_t)context);
+	return PyInt_FromLong((Py_intptr_t)context);
 }
 
 /* Convert an integer to the given base.  Returns a string.
diff --git a/Objects/longobject.c b/Objects/longobject.c
index afa1b75..2e13d61 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -3391,7 +3391,7 @@
 
 static PyObject *
 long_getN(PyLongObject *v, void *context) {
-	return PyLong_FromLong((intptr_t)context);
+	return PyLong_FromLong((Py_intptr_t)context);
 }
 
 static PyObject *