include Python.h
diff --git a/Python/getcopyright.c b/Python/getcopyright.c
index 67b67c6..5750043 100644
--- a/Python/getcopyright.c
+++ b/Python/getcopyright.c
@@ -1,5 +1,7 @@
 /* Return the copyright string.  This is updated manually. */
 
+#include "Python.h"
+
 const char *
 getcopyright()
 {
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"