]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
PyMODINIT_FUNC conflicts with static
authorNick Porter <nick@portercomputing.co.uk>
Tue, 17 Sep 2024 16:51:56 +0000 (17:51 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 17 Sep 2024 17:04:19 +0000 (18:04 +0100)
src/modules/rlm_python3/rlm_python3.c

index fed6ec658ab4195b87bb695471b27b85db7aac93..49226f63cd044b63e8388b47aed906275d5e3e3b 100644 (file)
@@ -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;
        /*