From: Nick Porter Date: Thu, 23 Jan 2025 10:43:32 +0000 (+0000) Subject: PyMODINIT_FUNC conflicts with static when Python >= 3.9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac489b07b3dce3fe49a669487d30d4966bf04eb1;p=thirdparty%2Ffreeradius-server.git PyMODINIT_FUNC conflicts with static when Python >= 3.9 --- diff --git a/src/modules/rlm_python3/rlm_python3.c b/src/modules/rlm_python3/rlm_python3.c index e6f82d0198..0fa68cda2a 100644 --- a/src/modules/rlm_python3/rlm_python3.c +++ b/src/modules/rlm_python3/rlm_python3.c @@ -1038,7 +1038,12 @@ static void *dlopen_libpython(int flags) /* * creates a module "radiusd" */ +#if PY_MINOR_VERSION >= 9 +PyMODINIT_FUNC PyInit_radiusd(void); +PyMODINIT_FUNC PyInit_radiusd(void) +#else static PyMODINIT_FUNC PyInit_radiusd(void) +#endif { CONF_SECTION *cs; /*