Enable building WITHOUT_ACCOUNTING
[freeradius.git] / src / main / modules.c
index a569c07..e8db884 100644 (file)
@@ -1106,6 +1106,14 @@ static int load_byserver(CONF_SECTION *cs)
                        continue;
                }
 
+#ifdef WITHOUT_ACCOUNTING
+               if (comp == RLM_COMPONENT_ACCT) continue;
+#endif
+
+#ifdef WITHOUT_SESSION_MGMT
+               if (comp == RLM_COMPONENT_SESS) continue;
+#endif
+
                if (load_component_section(subcs, components, comp) < 0) {
                        goto error;
                }