summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Include
diff options
context:
space:
mode:
authorshadchin <[email protected]>2023-10-03 23:32:21 +0300
committershadchin <[email protected]>2023-10-03 23:48:51 +0300
commit01ffd024041ac933854c367fb8d1b5682d19883f (patch)
treeb70aa497ba132a133ccece49f7763427dcd0743f /contrib/tools/python3/src/Include
parenta33fdb9a34581fd124e92535153b1f1fdeca6aaf (diff)
Update Python 3 to 3.11.6
Diffstat (limited to 'contrib/tools/python3/src/Include')
-rw-r--r--contrib/tools/python3/src/Include/internal/pycore_pystate.h6
-rw-r--r--contrib/tools/python3/src/Include/patchlevel.h4
-rw-r--r--contrib/tools/python3/src/Include/pyport.h5
3 files changed, 8 insertions, 7 deletions
diff --git a/contrib/tools/python3/src/Include/internal/pycore_pystate.h b/contrib/tools/python3/src/Include/internal/pycore_pystate.h
index cb8f115768a..7c5aba12d52 100644
--- a/contrib/tools/python3/src/Include/internal/pycore_pystate.h
+++ b/contrib/tools/python3/src/Include/internal/pycore_pystate.h
@@ -61,6 +61,12 @@ _Py_ThreadCanHandlePendingCalls(void)
}
+#ifndef NDEBUG
+extern int _PyThreadState_CheckConsistency(PyThreadState *tstate);
+#endif
+
+int _PyThreadState_MustExit(PyThreadState *tstate);
+
/* Variable and macro for in-line access to current thread
and interpreter state */
diff --git a/contrib/tools/python3/src/Include/patchlevel.h b/contrib/tools/python3/src/Include/patchlevel.h
index 7023a3f6c36..70d71c11377 100644
--- a/contrib/tools/python3/src/Include/patchlevel.h
+++ b/contrib/tools/python3/src/Include/patchlevel.h
@@ -18,12 +18,12 @@
/*--start constants--*/
#define PY_MAJOR_VERSION 3
#define PY_MINOR_VERSION 11
-#define PY_MICRO_VERSION 5
+#define PY_MICRO_VERSION 6
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
#define PY_RELEASE_SERIAL 0
/* Version as a string */
-#define PY_VERSION "3.11.5"
+#define PY_VERSION "3.11.6"
/*--end constants--*/
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
diff --git a/contrib/tools/python3/src/Include/pyport.h b/contrib/tools/python3/src/Include/pyport.h
index 93250f4eb1d..b3b8b6f09af 100644
--- a/contrib/tools/python3/src/Include/pyport.h
+++ b/contrib/tools/python3/src/Include/pyport.h
@@ -439,11 +439,6 @@ Please be conservative with adding new ones, document them and enclose them
in platform-specific #ifdefs.
**************************************************************************/
-#ifdef SOLARIS
-/* Unchecked */
-extern int gethostname(char *, int);
-#endif
-
#ifdef HAVE__GETPTY
#include <sys/types.h> /* we need to import mode_t */
extern char * _getpty(int *, int, mode_t, int);