]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
PyMODINIT_FUNC conflicts with static when Python >= 3.9
authorNick Porter <nick@portercomputing.co.uk>
Thu, 23 Jan 2025 10:43:32 +0000 (10:43 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 23 Jan 2025 10:43:32 +0000 (10:43 +0000)
src/modules/rlm_python3/rlm_python3.c

index e6f82d01987f515e306c7211572573258647b01f..0fa68cda2a99b2f87fd6f1379dfe4cc9570859f4 100644 (file)
@@ -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;
        /*