summaryrefslogtreecommitdiffstats
path: root/Modules/errnomodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-17 10:27:16 (GMT)
committerGitHub <noreply@github.com>2023-10-17 10:27:16 (GMT)
commitdb15fc23c629fb7e0dfd4858c064fcd4c02582b3 (patch)
tree82dc4e15fb86430d4d9300d82241dc0e9f750469 /Modules/errnomodule.c
parent9a9fba825f8aaee4ea9b3429875c6c6324d0dee0 (diff)
downloadcpython-db15fc23c629fb7e0dfd4858c064fcd4c02582b3.zip
cpython-db15fc23c629fb7e0dfd4858c064fcd4c02582b3.tar.gz
cpython-db15fc23c629fb7e0dfd4858c064fcd4c02582b3.tar.bz2
gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED new in 3.13. (#110969)
* Only add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED to limited C API version 3.13. * errno, xxlimited and _ctypes_test extensions now need the limited C API version 3.13 to get Py_MOD_PER_INTERPRETER_GIL_SUPPORTED. They now include standard header files explicitly: <errno.h>, <string.h> and <stdio.h>. * xxlimited_35: Remove Py_mod_multiple_interpreters slot, incompatible with limited C API version 3.5.
Diffstat (limited to 'Modules/errnomodule.c')
-rw-r--r--Modules/errnomodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c
index 25cd7e9..e4fd3b4 100644
--- a/Modules/errnomodule.c
+++ b/Modules/errnomodule.c
@@ -1,9 +1,10 @@
/* Errno module */
-// Need PyModuleDef_Slot added to limited C API version 3.5
-#define Py_LIMITED_API 0x03050000
+// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
+#define Py_LIMITED_API 0x030d0000
#include "Python.h"
+#include <errno.h> // EPIPE
/* Windows socket errors (WSA*) */
#ifdef MS_WINDOWS