include Python.h
diff --git a/Python/getversion.c b/Python/getversion.c
index 1f2accc..07b0ead 100644
--- a/Python/getversion.c
+++ b/Python/getversion.c
@@ -1,5 +1,7 @@
 /* Return the full version string. */
 
+#include "Python.h"
+
 #include "patchlevel.h"
 
 #define VERSION "%s (%s) %s"