From: Nick Porter Date: Tue, 17 Sep 2024 16:51:56 +0000 (+0100) Subject: PyMODINIT_FUNC conflicts with static X-Git-Tag: release_3_2_7~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5d1b4be04843c73f9559fbc6cfa96b20ebb9bbb;p=thirdparty%2Ffreeradius-server.git PyMODINIT_FUNC conflicts with static --- diff --git a/src/modules/rlm_python3/rlm_python3.c b/src/modules/rlm_python3/rlm_python3.c index fed6ec658ab..49226f63cd0 100644 --- a/src/modules/rlm_python3/rlm_python3.c +++ b/src/modules/rlm_python3/rlm_python3.c @@ -1036,7 +1036,11 @@ static void *dlopen_libpython(int flags) /* * creates a module "radiusd" */ +#if PY_MINOR_VERSION > 9 +PyMODINIT_FUNC PyInit_radiusd(void) +#else static PyMODINIT_FUNC PyInit_radiusd(void) +#endif { CONF_SECTION *cs; /*