Add proper (getattrfunc) cast in Pcre_Type.
diff --git a/Modules/pcremodule.c b/Modules/pcremodule.c
index d7615d1..73af3ca 100644
--- a/Modules/pcremodule.c
+++ b/Modules/pcremodule.c
@@ -164,7 +164,7 @@
 	/* methods */
 	(destructor)PyPcre_dealloc, /*tp_dealloc*/
 	0,			/*tp_print*/
-	PyPcre_getattr,                      /*tp_getattr*/
+	(getattrfunc)PyPcre_getattr, /*tp_getattr*/
 	0,                      /*tp_setattr*/
 	0,			/*tp_compare*/
 	0,			/*tp_repr*/