This is a backport of the fix in rev. 59369.

This patch doesn't remove the wrappers for OSADebug* API's but only defines
them when configure detects that the API's are present in the system's
header files.
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 44e4881..0ee13e4 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -359,6 +359,9 @@
 /* Define to 1 if you have the `openpty' function. */
 #undef HAVE_OPENPTY
 
+/* Define is the (unsupported) OSADebug API's are present. */
+#undef HAVE_OSA_DEBUG
+
 /* Define to 1 if you have the `pathconf' function. */
 #undef HAVE_PATHCONF