mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fix #426: Replace _Py_fopen() with fopen() in pythonmod.c
The private _Py_fopen() function has been removed in Python 3.10. Fix build on Python 3.10.
This commit is contained in:
parent
5943c6f2e3
commit
92d01d8265
2 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
- Fix #422: IPv6 fallback issues when IPv6 is not properly
|
- Fix #422: IPv6 fallback issues when IPv6 is not properly
|
||||||
enabled/configured.
|
enabled/configured.
|
||||||
- Fix to make tests work with support indicators set for iterator.
|
- Fix to make tests work with support indicators set for iterator.
|
||||||
|
- Fix build on Python 3.10.
|
||||||
|
|
||||||
10 February 2021: Wouter
|
10 February 2021: Wouter
|
||||||
- Merge PR #420 from dyunwei: DOH not responsing with
|
- Merge PR #420 from dyunwei: DOH not responsing with
|
||||||
|
|
|
||||||
|
|
@ -338,7 +338,7 @@ int pythonmod_init(struct module_env* env, int id)
|
||||||
PyFileObject = PyFile_FromString((char*)pe->fname, "r");
|
PyFileObject = PyFile_FromString((char*)pe->fname, "r");
|
||||||
script_py = PyFile_AsFile(PyFileObject);
|
script_py = PyFile_AsFile(PyFileObject);
|
||||||
#else
|
#else
|
||||||
script_py = _Py_fopen(pe->fname, "r");
|
script_py = fopen(pe->fname, "r");
|
||||||
#endif
|
#endif
|
||||||
if (script_py == NULL)
|
if (script_py == NULL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue