More patches to build without certain features
authorAlan T. DeKok <aland@freeradius.org>
Thu, 30 Sep 2010 10:28:32 +0000 (12:28 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 30 Sep 2010 10:28:32 +0000 (12:28 +0200)
src/main/listen.c
src/main/radiusd.c

index b6e2b4d..1f40ead 100644 (file)
@@ -884,6 +884,7 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this)
        sock->my_ipaddr = ipaddr;
        sock->my_port = listen_port;
 
+#ifdef WITH_PROXY
        if (check_config) {
                if (home_server_find(&sock->my_ipaddr, sock->my_port, sock->proto)) {
                                char buffer[128];
@@ -896,6 +897,7 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this)
 
                return 0;       /* don't do anything */
        }
+#endif
 
        /*
         *      If we can bind to interfaces, do so,
index 20ad58e..6815e43 100644 (file)
@@ -406,7 +406,9 @@ int main(int argc, char *argv[])
         *      Process requests until HUP or exit.
         */
        while ((rcode = radius_event_process()) == 0x80) {
+#ifdef WITH_STATS
                radius_stats_init(1);
+#endif
                hup_mainconfig();
        }