python: fix building _io.so

This commit is contained in:
Leah Neukirchen 2023-06-16 22:43:06 +02:00
parent cf11e18a02
commit e4daf64345
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -947,7 +947,6 @@
#define Py_ULL(x) Py_LL(x##U)
#endif
-#ifdef Py_BUILD_CORE
/*
* Macros to protect CRT calls against instant termination when passed an
* invalid parameter (issue23524).
@@ -965,6 +964,5 @@
#define _Py_END_SUPPRESS_IPH
#endif /* _MSC_VER >= 1900 */
-#endif /* Py_BUILD_CORE */
#endif /* Py_PYPORT_H */

View File

@ -4,7 +4,7 @@
#
pkgname=python
version=2.7.18.7
revision=1
revision=2
pycompile_dirs="usr/lib/python2.7"
hostmakedepends="pkg-config"
makedepends="libffi-devel readline-devel gdbm-devel openssl-devel expat-devel