diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2024-08-13 20:44:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-13 20:44:57 (GMT) |
commit | ee1b8ce26e700350e47a5f65201097121c41912e (patch) | |
tree | d20c7875e496ceca4c74a706f5536774e0fc0dd6 /Include | |
parent | 5f6851152254b4b9d70af4ae5aea3f20965cee28 (diff) | |
download | cpython-ee1b8ce26e700350e47a5f65201097121c41912e.zip cpython-ee1b8ce26e700350e47a5f65201097121c41912e.tar.gz cpython-ee1b8ce26e700350e47a5f65201097121c41912e.tar.bz2 |
gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952)
As of 529a160 (gh-118204), building with HAVE_DYNAMIC_LOADING stopped working. This is a minimal fix just to get builds working again. There are actually a number of long-standing deficiencies with HAVE_DYNAMIC_LOADING builds that need to be resolved separately.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_importdl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_importdl.h b/Include/internal/pycore_importdl.h index e5f222b..525a16f 100644 --- a/Include/internal/pycore_importdl.h +++ b/Include/internal/pycore_importdl.h @@ -56,9 +56,11 @@ extern int _Py_ext_module_loader_info_init_for_core( extern int _Py_ext_module_loader_info_init_for_builtin( struct _Py_ext_module_loader_info *p_info, PyObject *name); +#ifdef HAVE_DYNAMIC_LOADING extern int _Py_ext_module_loader_info_init_from_spec( struct _Py_ext_module_loader_info *info, PyObject *spec); +#endif /* The result from running an extension module's init function. */ struct _Py_ext_module_loader_result { @@ -87,9 +89,11 @@ extern void _Py_ext_module_loader_result_apply_error( /* The module init function. */ typedef PyObject *(*PyModInitFunction)(void); +#ifdef HAVE_DYNAMIC_LOADING extern PyModInitFunction _PyImport_GetModInitFunc( struct _Py_ext_module_loader_info *info, FILE *fp); +#endif extern int _PyImport_RunModInitFunc( PyModInitFunction p0, struct _Py_ext_module_loader_info *info, |